Answers for "result_array get first element of array"

PHP
2

get first element of array php

array_values($array)[0];
Posted by: Guest on May-31-2021
0

php get first element of array

$firstKey=array_keys($arr)[0];
Posted by: Guest on October-19-2021

Code answers related to "result_array get first element of array"

Browse Popular Code Answers by Language