FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mail function and wordwrap
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
mail function and wordwrap [message #172255] Tue, 08 February 2011 13:19 Go to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
I have looked through php.net (and googled) without finding an example
of this particular scenario.

If the message is the result of:

$msg = "A very long sentence\n";
$msg .= "A short sentence\n"; // less than 70 characters
$msg .= "Another short sentence\n"; // less than 70 characters
$msg .= "Another very long sentence";

$msg = wordwrap($msg, 70);

Does wordwrap only act on the longer individual strings? Will the short
strings appear on lines of their own?

In other words, will the formatting (\n) in each string taken separately
override the overall wordwrap?

Thank you,

Bill B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: An extremely large hash lookup mechanism
Next Topic: Unexpected error in log: php_gd2.dll
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 14:35:55 GMT 2024

Total time taken to generate the page: 0.03953 seconds