Re: nowdocs again

From: Date: Wed, 30 Jan 2008 21:56:15 +0000
Subject: Re: nowdocs again
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-35049@lists.php.net to get a copy of this message
On 31.01.2008 00:06, Andi Gutmans wrote: > I think it's actually pretty useful and not that uncommon to have large > chunks of text which you want to capture in a variable (and not deal > with the shortcomings of single quotes and/or output buffering in those > instances). Does this work for you? $string = <<<DATA I don't like slashes in my DATA , so I use heredoc DATA; I don't want to deal with slashes whatsoever. > And we're not talking about something significant which > has risk associated with it and/or impacts other areas. Sure, this is just a new syntax, we add them every day. -- Wbr, Antony Dovgal

« previous php.internals (#35049) next »