tdphp/td3/10.php

14 lines
210 B
PHP
Raw Permalink Normal View History

2023-03-06 15:21:44 +01:00
<?php
function minmax($a)
{
$valmin = min($a);
$valmax = max($a);
return array(
"min" => $valmin,
"max" => $valmax
);
}
print_r(minmax(array(1, 24, 5, 9, 10, 2222, 291, 20)));