Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Dict/take.php
Назад
<?php declare(strict_types=1); namespace Psl\Dict; /** * Take the first n elements from an iterable. * * Examples: * * Dict\take(['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4], 2) * => Dict('a' => 1, 'b' => 2) * * @template Tk of array-key * @template Tv * * @param iterable<Tk, Tv> $iterable Iterable to take the elements from * @param int<0, max> $n Number of elements to take from the start * * @return array<Tk, Tv> */ function take(iterable $iterable, int $n): array { return slice($iterable, 0, $n); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка