Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Vec/shuffle.php
Назад
<?php declare(strict_types=1); namespace Psl\Vec; use function shuffle as php_shuffle; /** * Shuffle the given iterable items. * * Example: * * Vec\shuffle([1, 2, 3]) * => Vec(2, 3, 1) * * Vec\shuffle(['a' => 1, 'b' => 2, 'c' => 3]) * => Vec(2, 3, 1) * * @template T * * @param iterable<T> $iterable * * @return list<T> the shuffled items as a list. */ function shuffle(iterable $iterable): array { $array = namespace\values($iterable); php_shuffle($array); return $array; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка