__construct()
__construct()
Class constructor.
Creates an instance
Utility functions to make writing code easier.
arrayEndsAsExpected(array $inputArray, array $keys, string $expectedType) : bool
Walks the keys in a multi-dimensional array to verify that all intermediate keys exist and that the array ends with the expected type.
This should help avoid lengthy if( array_key_exists... && is_array... test chains
| array | $inputArray | The array to examine |
| array | $keys | And array of key names to examine from the inputArray |
| string | $expectedType | The type of data expected at the end (string, nonempty_string, numeric or array) |