Re: where is the source is nl2br()?

From: Date: Sat, 03 Mar 2001 01:56:51 +0000
Subject: Re: where is the source is nl2br()?
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-47831@lists.php.net to get a copy of this message
Lars Torben Wilson writes: > Lucas Rockwell writes: > > hi, > > > > i know the subject of changing the source code for the community at large > > is a touchy one, so i want to start off by saying that i want to make this > > change for our php implementation for use on our site. > > > > so, with that said, i would like to modify the nl2br() function so that it > > is xhtml 1.0 compliant. can anyone tell me where in the code i can find > > this function? > > > > many thanks in advance. > > > > -lucas > > > > ------------------------ > > Lucas Rockwell > > lr@socrates.berkeley.edu > > It's in ext/standard/string.c in the PHP 4 source, but it already is > XHTML compliant: Just following up to myself (sorry)--I just realized that this wasn't in 4.0.4 since it was added on Dec 28 2000. Will be in 4.0.5 though. > ~/work/php4 > shanna% php -q -a > Interactive mode enabled > > <?php > echo nl2br("This is \n a test\n"); > This is <br /> > a test<br /> > ?> > > ~/work/php4 > shanna% php -v > 4.0.5-dev > > > Cheers, > > Torben > > > -- > +----------------------------------------------------------------+ > |Torben Wilson <torben@php.net> Adcore Finland| > |http://www.coastnet.com/~torben > http://www.adcore.com| > |Ph: 1.604.709.0506 torben@adcore.com| > +----------------------------------------------------------------+ > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Adcore Finland| |http://www.coastnet.com/~torben http://www.adcore.com| |Ph: 1.604.709.0506 torben@adcore.com| +----------------------------------------------------------------+

« previous php.dev (#47831) next »