php - str_replace('\"','',$str) not working on server why? -
i using
str_replace('\"','',$str); to replace '\"' php script. correctly working on localhost.
when uploading not working on server. why ?
the script like, $str=http://www.keralatourism.org/beta-images/newsletter.jpg\""> remove \" using echo str_replace('\"','',$str);
its working on local host not in live server
i not clear if want remove backslashes user stripslashes
$str= 'http://www.keralatourism.org/beta-images/newsletter.jpg\""'; echo stripslashes($str); if trying remove double quotes:
$str= 'http://www.keralatourism.org/beta-images/newsletter.jpg\""'; echo str_replace ('"', '', $str); wrap double quotes inside single quotes.
hope helps :)
Comments
Post a Comment