PHP Classes

Array Picker: Filter arrays by key, exclude items or match rules

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 346 All time: 7,031 This week: 455Up
Version License PHP version Categories
array-picker 0.1Custom (specified...5.0PHP 5, Data types
Description 

Author

This class can filter arrays by key, exclude items or matching rules.

It can take a given associative array and return the entry with a given index or a given default value if the index does not exist.

The class can also return the whole array except a given index if it exists.

It can also return the array filtered using a given set of conditions that determine the keys of the elements to include or exclude.

Innovation Award
PHP Programming Innovation award nominee
November 2013
Number 8
Sometimes it is necessary to filter arrays according to certain rules.

This class can filter arrays by either keeping or removing entries with a given index.

Manuel Lemos
Picture of Horse Luke
  Performance   Level  
Name: Horse Luke <contact>
Classes: 2 packages by
Country: China China
Age: 36
All time rank: 257330 in China China
Week rank: 178 Up3 in China China Up
Innovation award
Innovation award
Nominee: 1x

Screenshots (1)  
  • snapshot.png
  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file LICENSE.txt Lic. the Apache License, Version 2.0 (the "License")
Plain text file lrn_tool_array_picker.php Class class lrn_tool_array_picker
Accessible without login Plain text file raw_data.php Aux. example-raw-data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:346
This week:0
All time:7,031
This week:455Up