function Global / head

head

Get the first element of an array. Useful for method chaining.

Parameters

  • $array array