Login   Register  
PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-11-14 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 310 This week: 1All time: 6,553 This week: 1,364Up
Version License PHP version Categories  
array-picker 0.1Custom (specified in a ...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
Name: Horse Luke <contact>
Classes: 2 packages by
Country: China China
Age: 26
All time rank: 241629 in China China
Week rank: 1060 Up7 in China China Up
Innovation award
Innovation award
Nominee: 1x

  • 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:310All time:6,553
 This week:1This week:1,364Up