Page MenuHomeWickedGov Phorge

Php81.php
No OneTemporary

Size
710 B
Referenced Files
None
Subscribers
None

Php81.php

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Polyfill\Php81;
/**
* @author Nicolas Grekas <p@tchwork.com>
*
* @internal
*/
final class Php81
{
public static function array_is_list(array $array): bool
{
if ([] === $array || $array === array_values($array)) {
return true;
}
$nextKey = -1;
foreach ($array as $k => $v) {
if ($k !== ++$nextKey) {
return false;
}
}
return true;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 18:35 (4 h, 58 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ab/38/925fb49dde7afd71335452c57744
Default Alt Text
Php81.php (710 B)

Event Timeline