Zend\Stdlib\ArrayUtils
Utility class for testing and manipulation of PHP arrays.
Declared abstract, as we have no need for instantiation.
Synopsis
class ArrayUtils
{
- // methods
- public static bool hasStringKeys()
- public static bool hasIntegerKeys()
- public static bool hasNumericKeys()
- public static bool isList()
- public static bool isHashTable()
- public static bool inArray()
- public static array iteratorToArray()
- public static array merge()
Methods
public
- hasIntegerKeys() — Test whether an array contains one or more integer keys
- hasNumericKeys() — Test whether an array contains one or more numeric keys.
- hasStringKeys() — Test whether an array contains one or more string keys
- inArray() — Checks if a value exists in an array.
- isHashTable() — Test whether an array is a hash table.
- isList() — Test whether an array is a list
- iteratorToArray() — Convert an iterator to an array.
- merge() — Merge two arrays together.