Re: mail problem (newlines becomes =0A)
| From: | Jim Lucas | Date: | Thu, 19 Jun 2008 16:02:49 +0000 |
| Subject: | Re: mail problem (newlines becomes =0A) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275616@lists.php.net to get a copy of this message | ||
Daniel Brown wrote:
Sorry, forgot to send the link to my example in action http://www.cmsws.com/examples/php/testscripts/parasane@gmail.com/0001.php -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William ShakespeareForwarded.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.