highlight_string
PHP 4, PHP 5, PHP 7, PHP 8
highlight_string - Syntax highlighting of a string
Code Examples
Example #1 highlight_string example
Result: <code><span style="color: #000000">
<span style="color: #0000BB"><?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span>
</span>
</code>