Wednesday, 29 June 2011

Remove the back slashes from String or DB

string stripslashes ( string $str )
 eg:
$stripped = 'this is a string with three\\\ slashes';
$stripped =  stripslashes($stripped);


  Output: 'this is a string with three\ slashes'



Double stripslashes to completely remove 3 consecutive slashes

No comments:

Post a Comment