Re: echo warnings
| From: | _lallous | Date: | Tue, 09 Oct 2001 14:50:07 +0000 |
| Subject: | Re: echo warnings | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70470@lists.php.net to get a copy of this message | ||
you can do this:
echo "<?hello world!?>\n";
no problem!
btw, why are you escaping the single quote?!
"Martin Lindhe" <martin@humany.com> wrote in message
news:831D8A28AF18D5119EAA00E018C5B81C23BABB@MAIL1...
> Why does this produce a warning:
>
> echo "<?xml version=\'1.0\'?>";
>
>
> but not this:
>
> echo "<\?xml version=\'1.0\'\?>";
>
> ?
>
> <? ?> inside a string shouldnt be executed, or should it?
>
> /Martin