Tedd,


> -----Original Message-----
> From: tedd [mailto:t...@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
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to