mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-07-25 17:13:08 +00:00
16 lines
305 B
PHP
16 lines
305 B
PHP
<?php
|
|
class MinMax
|
|
{
|
|
public static function __callStatic(string $method, array $arr)
|
|
{
|
|
switch($method) {
|
|
case 'min':
|
|
return min($arr);
|
|
case 'max':
|
|
return max($arr);
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|