str replace - Getting rid of escape characters in PHP -
str replace - Getting rid of escape characters in PHP -
i've got string containing values such "hello world\' hello world\'"
, i'd rid of escape characters (the backslashes.)
i've tried next code:
str_replace("\\", "", $data);
but doesn't seem work.
if want rid of backslashes, there's handy php function accomplishes that
$var = stripslashes($var);
php str-replace
Comments
Post a Comment