note 13201 deleted from function.print by jimw

From: Date: Fri, 14 Dec 2001 20:22:03 +0000
Subject: note 13201 deleted from function.print by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22740@lists.php.net to get a copy of this message
Besides sending characters to print, you can also asign it to a variable just like PERL. // Example $name = "Sifl and Olly"; $message = <<<EOM Dear $name, Thanks for all the laughs. Sincerely, Delicious Digital EOM; echo $message; // Output Dear Sifl and Olly, Thanks for all the laughs. Sincerely, Delicious Digital // Notes This comes in handy when you are printing various messages in HTML that depend on certain conditions. It will keep the format (tabs, spaces, etc.) that you type into the code. You can use any terminator i.e. EOM EOF, Make sure there is no space after it or the parser will get mad.

« previous php.notes (#22740) next »