PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2016-02-07 (8 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 1,025 All time: 3,449 This week: 936Up
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
Picture of ALPESHKUMAR B PANCHAL
  Performance   Level  
Name: ALPESHKUMAR B PANCHAL <contact>
Classes: 1 package by
Country: India India
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:1,025
This week:0
All time:3,449
This week:936Up