Re: [PHP] Re: stoping a while statement From: _lallous (elias_bachaalany <email protected>)
Date: 10/10/01

I just wanted to show him the loop usage....

"Jason Brooke" <jason <email protected>> wrote in message
news:03d101c1515f$8a1db430$0100a8c0 <email protected>
> I can understand a loop re-write, but advising him to replace his use of
> explode() with split() when there's no need to invoke the regex stuff
might
> not be good advice.
>
> jason
>
>
> > I total re-write:
> >
> > $variable="www.tester.com";
> >
> >
>
$i="www.northwesthost.com,dns1.northwesthost.com,dns2.northwesthost.com,www.
> > tester.com";
> >
> > $domains = split(",", $i);
> > while (list(, $val) == each($domains))
> > {
> > if ($val==$variable)
> > {echo 'blah blah...';
> > break;}
> > }
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>