eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::isNumericArray PHP Méthode

isNumericArray() protected méthode

Checks if the given $value is a purely numeric array.
protected isNumericArray ( array $value ) : boolean
$value array
Résultat boolean
    protected function isNumericArray(array $value)
    {
        foreach (array_keys($value) as $key) {
            if (is_string($key)) {
                return false;
            }
        }
        return true;
    }