PHP stripcslashes Function

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 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