DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php get highest key value
$arr
=
array
(
1
=>
"A"
,
10
=>
"B"
,
5
=>
"C"
)
;
max
(
array_keys
(
$arr
)
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#highest
#key
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit