Re: nowdocs again
| From: | Antony Dovgal | Date: | Wed, 30 Jan 2008 14:55:19 +0000 |
| Subject: | Re: nowdocs again | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35027@lists.php.net to get a copy of this message | ||
On 30.01.2008 17:46, Richard Quadling wrote:
> As we may be missing a trick, how do you create strings which have $
> and ' and " in them?
$string = 'it\'s not that hard to add a $slash';
or
$string = <<<END
since when do we need a \$new 'language construct' to save one keystroke?
END;
or even
$string = "it's the \$third way to do the same \"thing\", but you want to add a
4th one";
--
Wbr,
Antony Dovgal