Text Wrapper

From: Date: Sat, 10 Nov 2001 07:16:38 +0000
Subject: Text Wrapper
Groups: php.general 
Request: Send a blank email to php-general+get-74083@lists.php.net to get a copy of this message
$string = "Mary had a little lamb whose face was icy cold. Everywhere that Mary went the townsfolk were sure to know"; I want to display the text where the max number of characters on any one line is 34. 1234567890123456789012345678901234 Mary had a little lamb whose face was icy cold. Everywhere that Mary went the townsfolk were sure to know. Where would I start? strlen($string) explode and then what?

« previous php.general (#74083) next »