|
|
PHP stripcslashes Function
|
Tutorials » Php »
|
Topic |
What is stripcslashes Function?
|
|
Explanation |
|
In PHP this function is used to un-quote string quoted with addcslashes.
Syntax:
stripcslashes(string)
In the above syntax "string" is the text with backslashes retreived from a database, to be cleaned up of backslashes.
Example:
<?php
echo stripcslashes("Hi, \my na\me is S\am An\derson.");
?>
Result:
Hi, my name is Sam Anderson
In the above example the backslashes from the string are removed.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|