PHP Classes

PHP Array Binary Search: Search, sort, get the average, unique array values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 131 All time: 9,352 This week: 206Up
Version License PHP version Categories
array-binary-search 1.0MIT/X Consortium ...5.5.12Algorithms, PHP 5, Data types
Description 

Author

This class class search, sort, get the average, shuffle, and unique array values.

The class takes a sorted array and uses binary search to find a given needle value restricting the search between given start and last index values.

The search may take an optional callback function that can perform given conversion of array values for comparison purposes during search.

The class can also sort the array, shuffle the array values, get the average of the values and get the unique list of values using callback functions to convert the values.

Picture of Felix Ivan Romero Rodríguez
  Performance   Level  

 

Details

ArraySearch

Class for Array Custom Searching


  Files folder image Files (3)  
File Role Description
Plain text file ArrayCustomSearch.php Class Class source
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file README.md Data Auxiliary data

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:131
This week:0
All time:9,352
This week:206Up