14 lines
190 B
PHP
14 lines
190 B
PHP
|
<?php
|
||
|
|
||
|
function minmax($a, $b)
|
||
|
{
|
||
|
$valmin = min($a, $b);
|
||
|
$valmax = max($a, $b);
|
||
|
return array(
|
||
|
"min" => $valmin,
|
||
|
"max" => $valmax
|
||
|
);
|
||
|
}
|
||
|
|
||
|
print_r(minmax(35, 1));
|