Re: php reserved characters...
| From: | John W. Holmes | Date: | Tue, 13 Jul 2004 03:21:15 +0000 |
| Subject: | Re: php reserved characters... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190309@lists.php.net to get a copy of this message | ||
bruce wrote:
i have the following: <html> <body> <? $test = "<p"; echo $test; print $test; ?> </body> </html> it doesn't seem to print... which leads me to believe that "<" is a reserved char/word... i tried to do a "\<p" with no luck... any idea as to what's going on, and can someone point me to a list of the actual php reserved chars/words.... couldn't seem to track them down on the php site/google...< is not reserved. The problem is your HTML. Your result ends up like this: <html> <body> <p <p </body> </html> which is just badly formed HTML, not PHP. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com