PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 345 All time: 7,031 This week: 289Up
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: 257130 in China China
Week rank: 312 Up3 in China China Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • snapshot.png
  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:345
This week:0
All time:7,031
This week:289Up