php get highest key value

Solutions on MaxInterview for php get highest key value by the best coders in the world

showing results for - "php get highest key value"
Julia
30 Aug 2016
1$arr = array( 1 => "A", 10 => "B", 5 => "C" );
2max(array_keys($arr));