Return to Snippet

Revision: 62360
at February 18, 2013 21:24 by apphp-snippets


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

Initial URL
http://www.apphp.com/index.php?snippet=php-highlight-code

Initial Description
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.

Initial Title
Highlight PHP Code

Initial Tags
php

Initial Language
PHP