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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -