Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Math/max.php
Назад
<?php declare(strict_types=1); namespace Psl\Math; /** * Returns the largest element of the given list, or null if the * list is empty. * * @template T of int|float * * @param list<T> $numbers * * @return T|null * * @pure */ function max(array $numbers): null|int|float { $max = null; foreach ($numbers as $number) { if (null === $max || $number > $max) { $max = $number; } } return $max; }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка