SproutCMS

This is the code documentation for the SproutCMS project

function iterableFirstValue()

Gets the first value of an iterable

Usage

null|mixed Sprout::iterableFirstValue ( iterable $iter );

Arguments

  1. iterable $iter
    An array or Traversable

Return value

  • mixed
    The value or null if the iterable is empty
  • null
    The value or null if the iterable is empty