Re: wordwrap()

From: Date: Tue, 17 Jul 2001 15:30:42 +0000
Subject: Re: wordwrap()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58284@lists.php.net to get a copy of this message
Well, that was easy. I never even thought to change the \n to <br>. Thanks for helping me over my mental block... Tyler ----- Original Message ----- From: "scott [gts]" <scott@graphictype.com> To: "php" <php-general@lists.php.net> Sent: Tuesday, July 17, 2001 10:25 AM Subject: RE: [PHP] wordwrap() > i know this is a silly question, but you're > not looking at it thru a web browser, are you? > browsers are for HTML and markup code. > > the output on my computer is the same as > the manual output: > A very > long > wooooooo > ooooord. > > > -----Original Message----- > > From: Tyler Longren [mailto:tyler@captainjack.com] > > Subject: [PHP] wordwrap() > > > > 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 > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#58284) next »