Re: nowdocs again

From: Date: Wed, 30 Jan 2008 19:38:31 +0000
Subject: Re: nowdocs again
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-35039@lists.php.net to get a copy of this message
Dmitry Stogov wrote:
The feature is very useful, however, I agree, the syntax would be better. :) The current syntax: $var = <<<'TEXT' text TEXT;
I would like to see nowdocs. The closest equivalent in another syntax I can think of is xml's CDATA. Perhaps we can borrow something similar to that syntax $var = <<<CDATA[ string here ]CDATA; Greg

« previous php.internals (#35039) next »