dezkit Posted August 10, 2008 Share Posted August 10, 2008 <? $str2highlight = "<? echo \"Hello World\"; ?>"; $str = highlight_string("$str2highlight"); echo $str; ?> ??? Link to comment https://forums.phpfreaks.com/topic/119033-solved-random-1-at-the-end-of-my-code/ Share on other sites More sharing options...
wildteen88 Posted August 10, 2008 Share Posted August 10, 2008 Your need to set the second parameter for the highlight_string function to true. $str = highlight_string("$str2highlight", true); Link to comment https://forums.phpfreaks.com/topic/119033-solved-random-1-at-the-end-of-my-code/#findComment-612923 Share on other sites More sharing options...
dezkit Posted August 10, 2008 Author Share Posted August 10, 2008 haha, thanks bro Link to comment https://forums.phpfreaks.com/topic/119033-solved-random-1-at-the-end-of-my-code/#findComment-612924 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.