Re: nl2br() question

From: Date: Sat, 26 Sep 2009 15:27:26 +0000
Subject: Re: nl2br() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-298366@lists.php.net to get a copy of this message
On Sat, 2009-09-26 at 11:22 -0400, tedd 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? > > I am using PHP Version 5.2.10 > > Cheers, > > tedd > > -- > ------- > http://sperling.com http://ancientstones.com > http://earthstones.com > The second parameter was only added in PHP 5.3.0, so I presume your PHP version is before that. Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#298366) next »