PHP Classes

PHP Array Search: Search for patterns in arrays using wildcards

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 1,048 All time: 3,510 This week: 204Up
Version License PHP version Categories
php-array-search 1.0.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
  Performance   Level  
Classes: 1 package by
Country: India India
Age: 45
All time rank: 2293143 in India India
Week rank: 516 Up40 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  
This week:0
All time:3,510
This week:204Up
For more information send a message to info at phpclasses dot org.