Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Dict/from_iterable.php
Назад
<?php declare(strict_types=1); namespace Psl\Dict; use function is_array; /** * Convert the given iterable to a dict. * * @template Tk of array-key * @template Tv * * @param iterable<Tk, Tv> $iterable * * @return array<Tk, Tv> */ function from_iterable(iterable $iterable): array { if (is_array($iterable)) { return $iterable; } $result = []; foreach ($iterable as $key => $value) { $result[$key] = $value; } return $result; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка