array return
123456789101112131415161718
<?php
function upper_or_lower($str) {
$res = array(
'upper' => strtoupper($str),
'lower' => strtolower($str)
);
return $res;
}
$res = upper_or_lower("What's The Purpose of Life?");
echo $res['upper'];
echo "\n";
echo $res['lower'];
?>
Php
INFO