Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get highest key in array

$array = array(0 => "-1121", 1 => "-1605", 2 => "100", 3 => "55");
echo max(array_keys($array)); ///OUTPUT: 3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #highest #key #array
ADD COMMENT
Topic
Name
4+2 =