DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to get the first array element
$arr = array( 4 => 'apple', 7 => 'orange', 13 => 'plum' ); echo reset($arr); // Echoes "apple"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#array
#element
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit