Re: Re: Split()
| From: | John W. Holmes | Date: | Tue, 17 Feb 2004 16:46:33 +0000 |
| Subject: | Re: Re: Split() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177973@lists.php.net to get a copy of this message | ||
From: "John Taylor-Johnston" <taylorjo@collegesherbrooke.qc.ca>
> I can do this, but want to understand how to while it: Or should I?
>
> $tempslices = explode("\r\n", $pizza);
> foreach ($tempslices as $singleslice)
> {
> echo "<a
> href=\"http://www.foo.org$singleslice\">$singleslice</a>
> ";
> }
>
> Still learning :)
There's no real reason to use while() over foreach(). Why do you think you
need to use while()?
---John Holmes...