Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

fbBinarySearch Class Reference

Inheritance diagram for fbBinarySearch:

Inheritance graph
[legend]
List of all members.

Detailed Description

Abstract class for binary search classes.

Definition at line 38 of file BinarySearch.php.

Public Member Functions

 search ($needle, $haystack, $sort_flag=null, $compare_function=null)


Member Function Documentation

fbBinarySearch::search needle,
haystack,
sort_flag = null,
compare_function = null
 

Perform a binary search on a sorted array or hash

Parameters:
$needle mixed
$haystack array
$sort_flag bool
$compare_function string

Todo:
add $fuzzy parameter

Reimplemented in fbBinarySearch_Array, and fbBinarySearch_Hash.

Definition at line 50 of file BinarySearch.php.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:52:30 2004 for Freebeer by doxygen 1.3.6-20040222