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

13 lines
302 B
PHP
Raw Permalink Normal View History

2023-01-05 12:55:52 +01:00
<?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);
}
}