note 46062 deleted from function.array-search by felipe
| From: | felipe@php.net | Date: | Sun, 10 Feb 2008 13:10:34 +0000 |
| Subject: | note 46062 deleted from function.array-search by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-135958@lists.php.net to get a copy of this message | ||
Note Submitter: leaetherstrip ATNOSPAM inbox DOT ru
----
For get dennis dot decoene 's binary_search working on arrays with 1 or 2 elements, just
replace
<?php
while ($high - $low > 1){
?>
with
<?
while ($high - $low >= 1){
?>