Login   Register  
PHP Classes
elePHPant
Icontem

PHP Array Search: Search for patterns in arrays using wildcards

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-09-20 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 985 This week: 2All time: 3,425 This week: 656Up
Version License PHP version Categories  
php-array-search 1.0BSD License5.0PHP 5, Data types
Description Author  

This class can search values in arrays with support to wildcards.

It can traverse arrays to search for given keyword either on the array values or even on the array keys.

The search keywords can be patterns that may use the % wildcard. The search can be for keywords that may be in the beginning, middle, end or any other combination of keyword values and wildcards.

Innovation Award  
PHP Programming Innovation award nominee
September 2012
Number 2


Prize: One downloadable copy of PhpED Professional
PHP provides means to search for values in an array but it can only find values that match exactly the searched value.

This class provides a more flexible solution that can search for patterns in array values or array keys.

It supports wildcards to define the search pattern in a similar way to SQL LIKE clauses.

Manuel Lemos
Picture of ALPESHKUMAR B PANCHAL
Name: ALPESHKUMAR B PANCHAL <contact>
Classes: 1 package by
Country: India India
Age: 37
All time rank: 2162140 in India India
Week rank: 630 Up48 in India India Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file array-search-example.php Example Example file
Plain text file array-search-class.php Class Main class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:985All time:3,425
 This week:2This week:656Up