Re: nl2br() question

From: Date: Sat, 26 Sep 2009 15:27:32 +0000
Subject: Re: nl2br() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-298365@lists.php.net to get a copy of this message
On Sat, Sep 26, 2009 at 11:22, tedd <tedd@sperling.com> wrote: > Hi gang: > > The manual says: > >   http://www.php.net/nl2br > > That I could use the function like so (Example #2): > >   $new = nl2br($string, false); > > But when I do, I get: > >   Warning: Wrong parameter count for nl2br() in /home... > > What's up with that? Read the manual fully, Teddence. Check the Changelog info, specifically. > I am using PHP Version 5.2.10 .... whereas the is_xhtml parameter was added in 5.3.0. And 5.3.0 > 5.2.10. ;-P -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at http://twitter.com/pilotpig

« previous php.general (#298365) next »