RE: [PHP-WIN] Small Doubt in PHP Manual...pls help
| From: | Ross Fleming | Date: | Sun, 05 May 2002 22:39:16 +0000 |
| Subject: | RE: [PHP-WIN] Small Doubt in PHP Manual...pls help | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13560@lists.php.net to get a copy of this message | ||
It means that the ?>'\n' is actually taken by the PHP parser. I think the
best way to explain it is with the following demo:
random text
<? echo "hello"; ?>
<? echo "world"; ?>
more random text
will produce:
random text
helloworldmore random text
instead of the (commonly) expected:
random text
hello
world
more random text
However, since newline characters are of little or not significance in the
land of HTML, I can't see this affecting you, however if they don't mention
these things, people will submit it as a bug.
Hope that helped
Ross
-----Original Message-----
From: theN [mailto:thenovice5@hotmail.com]
Sent: 05 May 2002 21:43
To: php-windows@lists.php.net
Subject: [PHP-WIN] Small Doubt in PHP Manual...pls help
<quote>
Note that the "?>" sequence also eats a end-of-line character
after it, so this end-of-line won't get generated to the implicitly
echo'ed output. If you need to generate an end-of-line after the
"?> sequence, you MUST follow it by another end-of-line...
</quote>
This above is a User Contributed Note on "Instruction Separation" of the
PHP manual. Could some one please explain what it means. Thanks
--
Lots of Luck
theN
thenovice5@hotmail.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php