Answers for "get first name in array php"

PHP
1

first item in array php

$firstItem = array_shift($array);
Posted by: Guest on May-24-2020
0

php get first element of array

array_pop(array_reverse($array));
Posted by: Guest on September-21-2021
0

php get first element of array

array_shift(array_values($array));
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language