RE: [PHP] The <<< convension

From: Date: Wed, 17 Mar 2004 21:37:56 +0000
Subject: RE: [PHP] The <<< convension
Groups: php.general 
Request: Send a blank email to php-general+get-180756@lists.php.net to get a copy of this message
noginn <mailto:php@noginn.com> on Wednesday, March 17, 2004 1:30 PM said: > I would get this error when running the above script. > > *Notice*: Undefined variable: variable in > *C:\WWW\Apache2\htdocs\php\testprint.php* on line *4* > This uses the "here document" syntax to output multiple lines with > interpolation. Note that the here document terminator must appear on a > line with just a semicolon no extra whitespace! it's choking on the $variable you've got in your heredoc text. you've probably got error reporting turned up so that it coughs on those kinds of errors. notice it didn't cause your program to fail. chris.

« previous php.general (#180756) next »