How can the highlight_string() function be used as a callback for highlighting PHP code within a string?

When working with PHP code within a string, you may want to highlight the syntax for better readability. One way to achieve this is by using the `highlight_string()` function as a callback. This function takes a string containing PHP code and returns a syntax-highlighted version of it. By using this function as a callback, you can easily highlight PHP code within a string.

<?php
// Define the callback function using highlight_string()
function highlight_php_code($code) {
    return highlight_string($code, true);
}

// Example usage
$phpCode = "<?php echo 'Hello, World!'; ?>";
$highlightedCode = highlight_php_code($phpCode);

echo $highlightedCode;
?>