[sf-perl] PHP line-ending question

Rich Morin rdm at cfcl.com
Sat Mar 4 23:48:31 PST 2006


I have some PHP code that looks like this:

   <? $a = 'some text';
      $b = 'more text.';
   ?>

   This is <?= $a ?>.
   This is <?= $b ?>
   That's enough...

I would expect the output to look like this:

   This is some text.
   This is more text.
   That's enough...

Instead, it looks like this:

   This is some text.
   This is more text.   That's enough...

FYI:

  % php -v
  PHP 4.4.1 (cli) (built: Feb  7 2006 06:26:45)
  ...

Is this a bug or a feature?

-r
-- 
Technical editing and writing, programming, and web development:
  http://www.cfcl.com/rdm/resume

Contact information: rdm at cfcl.com, +1 650-873-7841


More information about the SanFrancisco-pm mailing list