PHP/String/stripslashes

Материал из Web эксперт
Перейти к: навигация, поиск

string stripslashes ( string str ) is the opposite of addslashes( ): it removes one set of \-escapes from a string.

   <source lang="html4strict">

<?

   $string = "I"m a lumberjack and I"m okay!";
   $a = addslashes($string);
   print $a;
   $b = stripslashes($a);
   print $b;

?>

 </source>