Posted By

apphp-snippets on 02/18/13


php highlight

Versions (?)

Highlight PHP Code

 / Published in: PHP


This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.

  1. <?php
  2. highlight_string('<?php phpinfo(); ?>');
  3. ?>

Report this snippet  

You need to login to post a comment.