FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » strange one
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: strange one [message #181928 is a reply to message #181927] Tue, 25 June 2013 01:10 Go to previous messageGo to previous message
Scott Johnson is currently offline  Scott Johnson
Messages: 196
Registered: January 2012
Karma:
Senior Member
On 6/24/2013 6:02 PM, Shelly wrote:
> My daughter also does php. She has to fix up some awful code. She came
> across something that I have never seen before. It goes something like
> this:
>
> $a .= <<<BLAH;
>
> What is that <<< ?
>

It is a heredoc string.

Myself I use it quite often when I am formatting output text with
variables for emails and such.

Here is the manual on it

http://www.php.net/manual/en/language.types.string.php#language.types.strin g.syntax.heredoc
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Microsoft SQL and PHP
Next Topic: FORMS, validating mail was sent
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 03:26:33 GMT 2024

Total time taken to generate the page: 0.04229 seconds