SproutCMS

This is the code documentation for the SproutCMS project

function iterableFirstKey()

Gets the first key of an iterable

Usage

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

Arguments

  1. iterable $iter
    An array or Traversable

Return value

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