hetzner-dns-api/generated/Runtime/Normalizer/CheckArray.php

13 lines
No EOL
302 B
PHP

<?php
namespace DigiComp\HetznerDnsApi\Runtime\Normalizer;
trait CheckArray
{
public function isOnlyNumericKeys(array $array) : bool
{
return count(array_filter($array, function ($key) {
return is_numeric($key);
}, ARRAY_FILTER_USE_KEY)) === count($array);
}
}