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!


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

Reply via email to