RE: [PHP] nl2br() question

From: Date: Sat, 26 Sep 2009 15:42:37 +0000
Subject: RE: [PHP] nl2br() question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-298367@lists.php.net to get a copy of this message
Tedd, > -----Original Message----- > From: tedd [mailto:tedd@sperling.com] > Sent: Saturday, September 26, 2009 11:23 AM > To: PHP General List > Subject: [PHP] nl2br() question > > 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 > It seems to me that it doesn't think it is being passed a string. Have you tried putting in a static test string like $new = nl2br("Hello/n World!", false); echo $new; or alternatively echo $string; and see what is being passed. Thank you, Marc Hall HallMarc Websites 610.446.3346 __________ Information from ESET Smart Security, version of virus signature database 4459 (20090926) __________ The message was checked by ESET Smart Security. http://www.eset.com

« previous php.general (#298367) next »