Search
 
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
Name
1+5 =