-
Notifications
You must be signed in to change notification settings - Fork 166
Arrays and Iterators
Dmitriy Zayceff edited this page Apr 29, 2015
·
10 revisions
Thr
The JPHP has own util class for working with iterators and arrays php\lib\Items, for example:
use php\lib\Items;
$keys = Items::keys($array);
// instead of
$keys = array_keys($array);Why Items?
We cannot use Array because the all methods working with not only arrays, List because it's a lexer keyword, Arr because it's an ugly reduction of the Array word, Collection - it's too long word.
JPHP Group 2015