Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9879

Re: strange one

From Scott Johnson <noonehome@chalupasworld.com>
Newsgroups comp.lang.php
Subject Re: strange one
Date 2013-06-24 18:10 -0700
Organization A noiseless patient Spider
Message-ID <kqaqbu$1fb$1@dont-email.me> (permalink)
References <kqaptj$vgn$1@dont-email.me>

Show all headers | View raw


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.string.syntax.heredoc

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

strange one Shelly <sheldonlg@thevillages.net> - 2013-06-24 21:02 -0400
  Re: strange one Scott Johnson <noonehome@chalupasworld.com> - 2013-06-24 18:10 -0700
  Re: strange one Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-06-24 21:14 -0400
    Re: strange one Shelly <sheldonlg@thevillages.net> - 2013-06-24 21:18 -0400
    Re: strange one richard <noreply@example.com> - 2013-06-27 12:17 -0400

csiph-web