Skip to content

Arrays and Iterators

Dmitriy Zayceff edited this page Apr 29, 2015 · 10 revisions

Thr

Array Functions

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.

Clone this wiki locally