public function isAssoc(bool $recursive = false): bool
    {
        if ($this->isEmpty()) {
            return false;
        }

        foreach ($this->keys($recursive)->getGenerator() as $key) {
            if (!\is_string($key)) {
                return false;
            }
        }

        return true;
    }
public function isAssoc(bool $recursive = false): bool
    {
        if ($this->isEmpty()) {
            return false;
        }

        foreach ($this->keys($recursive)->getGenerator() as $key) {
            if (!\is_string($key)) {
                return false;
            }
        }

        return true;
    }
public function isAssoc ( bool $ recursive = false ) : bool { if ( $ this -> isEmpty ( ) ) { return false ; } foreach ( $ this -> keys ( $ recursive ) -> getGenerator ( ) as $ key ) { if ( ! \ is_string ( $ key ) ) { return false ; } } return true ; }
Check whether array is associative or not.

@param bool $recursive

@return bool
<p>Returns true if associative, false otherwise.</p>
Check whether array is associative or not .