highlight_string

PHP 4, PHP 5, PHP 7, PHP 8
highlight_string - Syntax highlighting of a string
Manual
Code Examples

Example #1 highlight_string example

Result: <code><span style="color: #000000"> <span style="color: #0000BB">&lt;?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?&gt;</span> </span> </code>
PHP Version: