Re: [PHP] Heredocs



I don't think you can have a space between the <<< and the 'END' bit...

On Wed, August 29, 2007 6:00 am, RodgerW wrote:
Are heredocs supported by PP 5.2.3 running in WinXP/Apache2.2.4 ?
I prrint via heredocs and its not working. Print with single quotes
and
double quotes work.

<p>
<h6>string init method 3: heredocs</h6>
<?php
print <<< END
Test
END;
?>
</p>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
Please vote for this great band:
http://acl.mp3.com/feature/soundandjury/?band=COMPANY-OF-THIEVES

Requires email confirmation.
One vote per day per email limit.
Obvious ballot-stuffing will be revoked.
.



Relevant Pages

  • Re: [PHP] PhP / MySQL problem
    ... On the submit of this form I make a sql connection and update the ... Requires email confirmation. ... One vote per day per email limit. ...
    (php.general)
  • Re: [PHP] Internet Explorer Caching
    ... with the way my PHP program goes, I'm constantly changing the URL as I ... Requires email confirmation. ... One vote per day per email limit. ...
    (php.general)
  • Re: [PHP] How to show proper time to users from around the world
    ... than try to figure out what time-zone they are in this minute (cough ... Indiana cough). ... Requires email confirmation. ... One vote per day per email limit. ...
    (php.general)
  • Re: [PHP] Heredocs
    ... I prrint via heredocs and its not working. ... Print with single quotes ... PHP General Mailing List ... Use the coupon code phpgeneralaug07 ...
    (php.general)
  • Re: [PHP] Round
    ... Strange ... Check http://bugs.php.net with your PHP version for a similar problem. ... Requires email confirmation. ... One vote per day per email limit. ...
    (php.general)