RE: [PHP] echo's "here document" syntax

From: Date: Wed, 14 May 2003 14:00:10 +0000
Subject: RE: [PHP] echo's "here document" syntax
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147579@lists.php.net to get a copy of this message
Hi, > echo <<<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; > Does anybody know the history of this method? "here document" > wha? Where'd I don't know the history, but that method is like using: print qq| sdlkjsdjlks whole bunch of stuf fhere .... |; .. in Perl. You can replace the | with any character you want. -Dan Joseph

« previous php.general (#147579) next »