Re: Outputting text "<?" how to?
| From: | Jasper Bryant-Greene | Date: | Thu, 30 Mar 2006 09:34:48 +0000 |
| Subject: | Re: Outputting text "<?" how to? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232901@lists.php.net to get a copy of this message | ||
Merlin wrote:
Hi there, I would like to output following text with php: <?xml version="1.0" encoding="ISO-8859-1" ?> How can I do that? I tried to escape the ? with \? but this did not help.Either: 1. Turn off short tags (good idea if you plan on distributing your code). 2. Just echo or print that text. Like: <?php echo '<?xml version="1.0" encoding="ISO-8859-1"?>' . "\n"; ?> -- Jasper Bryant-Greene General Manager Album Limited http://www.album.co.nz/ 0800 4 ALBUM jasper@album.co.nz 021 708 334