php max key from array
Posted: Wed May 04, 2016 6:03 pm
Hi,
how do I get the biggest key out of an array?
I can do it with a foreach loop,
but I'm hoping there is a easier way.
thanks.
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.