Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430271
Php81.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
710 B
Referenced Files
None
Subscribers
None
Php81.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment