Method: a::last

Returns the last 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::last($array)

Parameters

Return (mixed)

The last element

Example


$array = array(
  'cat',
  'dog',
  'bird',
);    

$last = a::last($array);
// first: 'bird'