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? Quote Link to comment Share on other sites More sharing options...
marcus Posted July 9, 2007 Share Posted July 9, 2007 Use < as < So: echo "<?php......."; Quote Link to comment 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! Quote Link to comment 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" Quote Link to comment 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.