how do I get the biggest key out of an array?
Code: Select all
$arr = array( 1 => 'c', 10 => 'z', 4 => 'A' );
but I'm hoping there is a easier way.
thanks.
Code: Select all
$arr = array( 1 => 'c', 10 => 'z', 4 => 'A' );
Code: Select all
$max = max(array_keys($arr));