robert_gsfame Posted June 4, 2010 Share Posted June 4, 2010 i have this php $string="Myname"; echo '$string'; how can i escape so that i can get Myname as a result Link to comment https://forums.phpfreaks.com/topic/203836-escape-single-quotes/ Share on other sites More sharing options...
Mchl Posted June 4, 2010 Share Posted June 4, 2010 echo $string; Link to comment https://forums.phpfreaks.com/topic/203836-escape-single-quotes/#findComment-1067560 Share on other sites More sharing options...
robert_gsfame Posted June 4, 2010 Author Share Posted June 4, 2010 Sorry this is the real problem ... $myfirstcontent=nl2br($text); $quote=mysql_fetch_array($query['mynama']); $changethis=array('',' ',''); $withthis=array('<img src=bar/emoticon_tongue.gif>','<div class=scroll>$quote','</div><br>'); $content=str_replace($changethis,$withthis,$myfirstcontent); Link to comment https://forums.phpfreaks.com/topic/203836-escape-single-quotes/#findComment-1067561 Share on other sites More sharing options...
Zagga Posted June 4, 2010 Share Posted June 4, 2010 Try putting your code inside the code goes here tags so we can read your code properly, and tell us what your are having problems with. Zagga Link to comment https://forums.phpfreaks.com/topic/203836-escape-single-quotes/#findComment-1067692 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.