Skip to content

amitsnyderman/php-itertools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

PHP Itertools

Usage

Simple value extraction from arrays. Inspired by the more verbose version we use at work.

$people = array(
	array('first_name' => 'Ren', 'last_name' => 'Hoek'),
	array('first_name' => 'Stimpson', 'last_name' => 'Cat'),
);

$firsts = Itertools::collectList($people, Extractor::key('first_name'));

// array('Ren', 'Stimpson')

Test

% phpunit tests/ItertoolsTest.php 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages