kimla Posted July 9, 2007 Share Posted July 9, 2007 Hi. I'm having a problem with echoing <?php. I'm making a small little bbcode-thing where i want all the code goes here . The problem is when the code is something like this: [startcode] <?php echo 'Hello world'; ?> [endcode] The <?php won't show, is there a nifty, quick solution to this? echo "<?php .... ?>"; How do you do this without the <?php falling away? Link to comment https://forums.phpfreaks.com/topic/58996-solved-echo/ Share on other sites More sharing options...
marcus Posted July 9, 2007 Share Posted July 9, 2007 Use < as < So: echo "<?php......."; Link to comment https://forums.phpfreaks.com/topic/58996-solved-echo/#findComment-292777 Share on other sites More sharing options...
kimla Posted July 9, 2007 Author Share Posted July 9, 2007 Use < as < So: echo "<?php......."; That must have been the quickest reply ever.. Thanks! Link to comment https://forums.phpfreaks.com/topic/58996-solved-echo/#findComment-292779 Share on other sites More sharing options...
marcus Posted July 9, 2007 Share Posted July 9, 2007 Ha no problem. Make sure to check this topic "Topic Solved" Link to comment https://forums.phpfreaks.com/topic/58996-solved-echo/#findComment-292780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.