How can the PHP echo function be utilized to output specific XML content within a PHP script?

To output specific XML content within a PHP script using the echo function, you need to ensure that the XML content is properly formatted and enclosed within quotes. This will prevent any syntax errors and ensure that the XML content is displayed correctly when the PHP script is executed.

<?php
// Output specific XML content using the echo function
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<data>
    <item>
        <name>Item 1</name>
        <price>10.99</price>
    </item>
</data>";
?>