eZ\Publish\Core\REST\Common\Output\Generator\Xml\FieldTypeHashGenerator::isNumericArray PHP Method

isNumericArray() protected method

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