/n not working
| From: | Thomas Hochstetter | Date: | Sat, 26 Jul 2003 16:43:16 +0000 |
| Subject: | /n not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-157015@lists.php.net to get a copy of this message | ||
Hi there.
I got a question from someone why the following (from the manual) will not
bring the desired output:
<?php
/* if I open the following txt file and in explorer*/
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap($text, 20);
echo "$newtext\n";
/*my output is the following
The quick brown fox jumped over the lazy dog.
*/
/*this should however have the following output according to the php manual
The quick brown fox
jumped over the
lazy dog.
*/
?>
Is this a php.ini setting?
Thomas
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!