note 27775 added to function.print

From: Date: Wed, 18 Dec 2002 14:43:32 +0000
Subject: note 27775 added to function.print
Groups: php.notes 
Request: Send a blank email to php-notes+get-41063@lists.php.net to get a copy of this message
The "<<<" convention can also be used to assign blocks to variables like this $text = <<<END This uses the "here document" syntax to output multiple lines with $variable interpolation. Note that the here document terminator must appear on a line with just a semicolon no extra whitespace! END; 'print $text;' Will output the string. Very handy for storing HTML. -- http://www.php.net/manual/en/function.print.php http://master.php.net/manage/user-notes.php?action=edit+27775 http://master.php.net/manage/user-notes.php?action=delete+27775 http://master.php.net/manage/user-notes.php?action=reject+27775

« previous php.notes (#41063) next »