为什么这会给我一个意想不到的T_STRING错误? [关闭]

The line that has the error is this one:

<?xml version="1.0" encoding="UTF-8"?>

There is nothing physically wrong with it as far as I can see, yet I get this error:

Parse error: syntax error, unexpected T_STRING in /directory/listing/upload.php on line 12

Sorry, let me clarify, I'm not trying to echo it or print it out, I'm trying to set the XML version.

There is no need for the upload.php code as it all works fine, it's just this one line.

Also, (yes I know, w3schools which I'm only using as an EXAMPLE) w3chools has it set out like this to set it?

Pastebin code here

and I guess if it helps, I'm following these tutorials

XML example

or do it with echo:

echo '<?xml version="1.0" encoding="UTF-8"?>';

Try This

<?php
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>