php header Content-Type application xml output xml version encoding UT

1
2
3
4
5
<?php
header('Content-Type: application/xml');
$output = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo $output;
?>