Re: Help with prev, next
| From: | CC Zona | Date: | Tue, 20 Feb 2001 07:15:38 +0000 |
| Subject: | Re: Help with prev, next | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40702@lists.php.net to get a copy of this message | ||
In article <01022015290505.09282@hermes>,
huntsman@hermes.nisu.flinders.edu.au (David Robley) wrote:
> According to the docs, "If advancing the internal array pointer results
> in going beyond the end of the element list, next() returns false" so
> when you try an print out the result, you get nothing. And once the
> pointer goes beyond the end (or beginning, with prev) its position is
> undefined and you need to use an absolute positioning instruction like
> end or reset to relocate the pointer in a known position.
>
> Analogy - it's a bit like walking up and down stairs - if you are
> currently on a step then 'go up one step' or 'go down one step' makes
> sense; but if you step off the stairs then you could be anywhere in
> relation to the stairs, even out side the building.
>
> Hmm, that's not a real good analogy - someone else?
Pages in a book...? Flipping back a page or forward a page makes sense
when you have a bookmark tucked in there somewhere. But once the bookmark
falls out, "next page" and "previous page" lose their meaning because the
question becomes "Ummm, next/previous relative to *which page, please?"
--
CC