Provides basic array helper methods.

private arrayFilterRemoveNull(array $arr)

Just like array_filter(), but preserves falsey values except null.

  • return array
private isAssoc(array $arr)

Determine whether given array is associative.

  • return bool
private pluck( $key, array $arr, $isRequired = true)

Pluck a value out of an array.

  • return mixed|null
  • throws InvalidArgumentException
private pluckArray(array $keys, $arr)

Pluck a subset of an array.

  • return array
private subsetArray(array $keys, $arr)

Return a subset of an array, like pluckArray, without modifying the original array.

  • return array
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only