Highlight PHP Code

Submitted by:Jhon Smith

Date added:06 June, 2012

Category: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.

Tags: php function

Code Snippet:

    <?php
highlight_string('<?php phpinfo(); ?>');
?>
 
 

Comments