Can anyone explain how Binary Search finds the middle element in 1 read?
Say you have IDs:
1, 2, 3, 4, 5, 6, 7
<?php
$numbers=array(1,2,3,4,5,6,7);
echo var_export($numbers, TRUE);
echo "\n\n";
echo "Middle element:".floor(sizeof($numbers)/2);
echo "\n\n";
?>