News Feed
Jobs Feed
Sections




News Archive
Lars Strojny's Blog:
NOWDOC + double quotes = HEREDOC
April 15, 2008 @ 10:25:09

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).

0 comments voice your opinion now!
heredoc nowdoc parse block content


blog comments powered by Disqus

Similar Posts

Mambo Foundation Blog: Baking Mambo

Enavu.com: PHP Smart Date Parsing: Natural Language Input (task.fm explained)

Zend Developer Zone: Automatic Tag Clouds for Every Site

PHP 10.0 Blog: php -T (variable tainting)

Gonzalo Ayuso's Blog: Building a small microframework with PHP (Part 2). Command line interface


Community Events











Don't see your event here?
Let us know!


series zendframework2 community composer language database phpunit development functional podcast example framework application code introduction opinion interview api release testing

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