Re: array_seek function
| From: | Felix De Vliegher | Date: | Wed, 17 Mar 2010 16:37:28 +0000 |
| Subject: | Re: array_seek function | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47373@lists.php.net to get a copy of this message | ||
On 17-mrt-2010, at 17:27, Frederic Hardy wrote:
>
> Hello Felix !
>
> Why not use arrayIterator::seek() ?
>
> Best regards,
> Fred
Because the functionality isn't exactly the same. ArrayIterator::seek() only sets the array
pointer, array_seek would also return the value + have fseek()-like functionality with the SEEK_*
consts and optional negative offsets.
Felix