Highlight PHP Code

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.

 <?php
	/* Source: http://www.apphp.com/index.php?snippet=php-highlight-code */
    highlight_string('<?php phpinfo(); ?>');
    ?>

Usage


Comments

Add your comment