NYCPHP Meetup

NYPHP.org

[nycphp-talk] heredoc help please?

Steve Manes smanes at magpie.com
Thu Jan 31 12:38:09 EST 2008


Urb LeJeune wrote:
> 
>> print nl2br(
>> <<<EOD
>> Here
>> are
>> four
>> lines.
>> EOD
>> );
> 
> Doesn't the closing EOD need a trailing ";"?

The closing parenthesis apparently takes care of the statement closure. 
  Actually, I believe adding one will throw an error.



More information about the talk mailing list