dezkit Posted August 10, 2008 Share Posted August 10, 2008 <? $str2highlight = "<? echo \"Hello World\"; ?>"; $str = highlight_string("$str2highlight"); echo $str; ?> ??? Quote 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); Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.