[PR][php-src][#645][master] - Add seek($array, $offset, $whence)
| From: | noreply@php.net | Date: | Mon, 23 Mar 2015 06:49:50 +0000 |
| Subject: | [PR][php-src][#645][master] - Add seek($array, $offset, $whence) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-2838@lists.php.net to get a copy of this message | ||
You can view the Pull Request on github:
https://github.com/php/php-src/pull/645
Warning: according to github, the Pull Request cannot be merged without manual conflict resolution!
Pull Request Description:
This fixes [bug 31375 ](https://bugs.php.net/bug.php?id=31375).
It introduces
seek($array, $offset [, $whence = SEEK_CUR) to perform a seek on an
array. For example:
$a = [1, 2, 3];
seek($a, 1); // current = 2
seek($a, 1); // current = 3
seek($a, -1, SEEK_END); // current = 2