Re: Simple String Handling

From: Date: Fri, 22 Dec 2000 15:22:09 +0000
Subject: Re: Simple String Handling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31590@lists.php.net to get a copy of this message
On Fri, 22 Dec 2000, Anuradha Ratnaweera wrote: > > > On Fri, 22 Dec 2000, Ignacio Vazquez-Abrams wrote: > > > On Fri, 22 Dec 2000, Anuradha Ratnaweera wrote: > > > > > Isn't it > > > > > > $tld = substr($input, 0, $pos); > > > ^ > > > > No, because it starts at $pos and goes to the end. > > But, what he wanted was the string upto and excluding the first dot. > > > Anuradha > Not for the TLD. Look again. -- Ignacio Vazquez-Abrams <ignacio@openservices.net>

« previous php.general (#31590) next »