A::isAssociative()
Checks whether an array is associative or not
A::isAssociative(array $array): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$arrayrequired | array |
no default value | The array to analyze |
Return type
bool
true: The array is associative false: It's not
Parent class
Examples
$array = ['a', 'b', 'c'];