RE: [PHP] wordwrap not working
| From: | David Redmond | Date: | Thu, 21 Feb 2002 03:34:28 +0000 |
| Subject: | RE: [PHP] wordwrap not working | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85666@lists.php.net to get a copy of this message | ||
If your viewing the output through a browser, try this;
<?
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap( $text, 20, "<br>");
echo "$newtext\n";
?>
-----Original Message-----
From: Michael P. Carel [mailto:mikecarel@teamglac.com]
Sent: Thursday, 21 February 2002 1:25 PM
To: php
Subject: [PHP] wordwrap not working
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php