Re: Re: php form action breaks script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is a small price to pay for large block, especially if the text has any quotes. Personally, I can't keep them straight and delimit them, etc. Heredoc saves all that such stuff.

$insert= MY_DEFINED;

echo <<<hdc
This is my $insert
hdc;


On 6/15/2012 12:39 PM, Jim Lucas wrote:
On 06/15/2012 06:35 AM, Jim Giner wrote:
Hear, Hear for heredocs. The only way to code up your html. Took me a few
months to discover it and haven't looked back since.




The only problem I have with HEREDOC is I cannot use constants within them.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux