What is the purpose of the highlight function in the PHP code provided?
The purpose of the highlight function in the PHP code provided is to syntax highlight a given string of code. This function helps to make the code more readable and visually appealing by applying different colors to different parts of the code based on their syntax.
<?php
$code = '<?php echo "Hello, World!"; ?>';
highlight_string($code);
?>