Method: a::first
Returns the first element of an array
I always have to lookup the names of that function
so I decided to make this shortcut which is
easier to remember.
Info
Syntax
a::first($array)
Parameters
- $array (array) The source array
Return (mixed)
The first element
Example
$array = array(
'cat',
'dog',
'bird',
);
$first = a::first($array);
// first: 'cat'