News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

William Candillon's Blog: The Parse Tree generator

Michael Dowling's Blog: Cron Expression Parsing in PHP

Nick Halstead's Blog: Google Gears Caching of WordPress in PHP

Felix Geisendorfer's Blog: Cake 1.2’s Set class eats nested arrays for breakfast!

SitePoint PHP Blog: CMS Content Organization Structures: Trees vs Facets vs Tags

Community Events

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

release series laravel5 php7 framework voicesoftheelephpant version introduction community conference laravel podcast api language library opinion example interview unittest extension

All content copyright, 2015 :: - Powered by the Solar PHP Framework