Page MenuHomePhorge

function head($arr)
Arcanist Technical Documentation ()

Returns the first element of an array. Exactly like reset(), but doesn't choke if you pass it some non-referenceable value like the return value of a function.

Parameters
array$arrArray to retrieve the first element from.
Return
wildThe first value of the array.