mail problem (newlines becomes =0A)

From: Date: Thu, 19 Jun 2008 15:36:47 +0000
Subject: mail problem (newlines becomes =0A)
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-275609@lists.php.net to get a copy of this message
Forwarded. Accidentally clicked "reply" directly to Nitsan. Sorry about that. :-\ On Thu, Jun 19, 2008 at 2:47 AM, Nitsan Bin-Nun <nitsanbn@gmail.com> wrote: > Umm just for general knowledge, whats the difference between HEREDOC to > simple "<value>" assignment? > As far as i know they both do the same job except that HEREDOC have problems > with tabs infront of it (at the first line). Ther are other distinctions? HEREDOC syntax has no problems with tabs anywhere except the termination mark. For example: <?php $text =<<<EOT I can have tabs here, no problem. EOT; // I can't have a tab before this terminator though. ?> About the only *real* problem you'll face with HEREDOC vs. multiline quotes is using name-keyed arrays and superglobals. For example, you can use $foo[0], but you can't use $foo['bar'] or $_SESSION['foobar']. -- </Daniel P. Brown> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- </Daniel P. Brown> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo.

« previous php.general (#275609) next »