Re: Simple String Handling
| From: | Anuradha Ratnaweera | Date: | Fri, 22 Dec 2000 15:18:38 +0000 |
| Subject: | Re: Simple String Handling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31588@lists.php.net to get a copy of this message | ||
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