highlight_string
highlight_string
(PHP 4, PHP 5, PHP 7)
highlight_string — Syntax highlighting of a string
Description
mixed highlight_string ( string $str [, bool $return = false ] )
Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.
Parameters
-
str
-
The PHP code to be highlighted. This should include the opening tag.
-