wordwrap()

From: Date: Tue, 17 Jul 2001 15:17:47 +0000
Subject: wordwrap()
Groups: php.general 
Request: Send a blank email to php-general+get-58278@lists.php.net to get a copy of this message
Maybe I'm not using it right, but I'm using the sample in the manual. Here's the code: <? $text = "A very long woooooooooooord."; $newtext = wordwrap( $text, 8, "\n", 1); echo "$newtext\n"; ?> Here's the output: A very long wooooooo ooooord. Here's what the manual says the output should be: A very long wooooooo ooooord. Has anyone else had troubles with the wordwrap() function? Do I need to compile php with another flag to get this to work properly? Thanks, Tyler

« previous php.general (#58278) next »