News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



Lars Strojny's Blog:
NOWDOC + double quotes = HEREDOC
0 comments :: posted Tuesday April 15, 2008 @ 10:25:09
voice your opinion now!

Lars Strojny has posted about a the new element that's been introduced in the PHP 5.3 branch - NOWDOC:

PHP 5.3 introduces a new syntax element, NOWDOC. If you know HEREDOC, NOWDOC is easy to understand: it is in fact HEREDOC taken literally. Whily variables are expanded in HEREDOC, in NOWDOC they are not.

NOWDOC is basically a HEREDOC except for one thing - no parsing is done inside of it, making it good for echoing out PHP code (that would otherwise need to be escaped all over).

tagged with: heredoc nowdoc parse block content



framework pecl releases mysql zend code security book job conference cakephp release PEAR zendframework database PHP5 ajax developer application package

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework