Creating a Search Application -
(Page 24 of 29 )
This private function of the class will be used along with the array_walk() function in our fuzzy search. It will determine if an element of an array is less than 60. If it is, it will unset that element from the array.
<?php function _highpercent(&$item, $key, $array) { if ($item < 60) unset($array["$key"]); } ?> |
Next: >>
More Database Articles Articles
More By Matt Wade