Function: is_associative()

function is_associative(array &$array): bool;

Checks whether the array $array is associative.

Parameters

Name Pass type Value type Default value Description
$array by reference array

Array to be checked.

Returns

bool

Returns true if the array is associative, otherwise false.

Authors

Oleg Schildt

Package

Source code