I have an array:
array( 4 => \'apple\', 7 => \'orange\', 13 => \'plum\' )
I would like to get the first element of this array. Expect
Get first element:
array_values($arr)[0]
Get last element
array_reverse($arr)[0]