tdphp/td3/11.php

23 lines
339 B
PHP
Raw 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(
"maxime" => 1,
"coutteau" => 24,
"jean" => 5,
"claude" => 9,
"nunes" => 10,
"david" => 2222,
"gatel" => 291,
"frederic" => 20
)));