<?php $data = array('10' => 'a', '20' => 'b', '30' => 'c', '40' => 'd', '50' => 'e'); $keys = array_keys($data); $max = 38; $belowMax = array_filter( $keys, function($num) use ($max) { return $num < $max; } ); $highest = max($belowMax); echo '<pre>'. print_r($highest, 1). '</pre>';
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`