wordwrap not working
| From: | Michael P. Carel | Date: | Thu, 21 Feb 2002 03:25:07 +0000 |
| Subject: | wordwrap not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85664@lists.php.net to get a copy of this message | ||
Hi,
Im testing the example in the
http://www.php.net/manual/en/function.wordwrap.php
and it seems not working
it still printing the whole word and not wrapping. Im using php4.05 in my
redhat 6.2 using an apache.
Here's the sample:
<?
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap( $text, 20 );
echo "$newtext\n";
?>
it should print like this:
The quick brown fox
jumped over the lazy dog.
but it still printing like this:
The quick brown fox jumped over the lazy dog.
Please help
Regards,
Mike