PHP stripcslashes Function

What is stripcslashes Function?


In PHP this function is used to un-quote string quoted with addcslashes.



In the above syntax "string" is the text with backslashes retreived from a database, to be cleaned up of backslashes.

Example :

echo stripcslashes("Hi, my name is Sam Anderson.");
Result :

Hi, my name is Sam Anderson

In the above example the backslashes from the string are removed.

PHP Topics

Ask Questions

Ask Question