[sf-perl] PHP line-ending question
Duane Obrien
duane.obrien at gmail.com
Sun Mar 5 11:55:33 PST 2006
> rdm at cerberus [~/Work/PHP] 16: cat plex
> #!/usr/bin/env php
> #
> # plex - PHP line-ending example
>
> <? $a = 'some text';
> $b = 'more text.';
> ?>
>
> This is <?= $a ?>.
> This is <?= $b ?>
> That's enough...
Quirky and weird. But if you put a space or any character after the
<?=$b?> the line breaks normally. By design.
http://bugs.php.net/bug.php?id=13954
http://www.php.net/manual/en/language.basic-syntax.php#language.basic-syntax.phpmode
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Don't ever tell anybody anything. If you do, you start missing everybody.
More information about the SanFrancisco-pm
mailing list