function get_fruit2($fruit,$num){
$r="";
if ($fruit=="apple") {
$r=get_apple($num);
}else if ($fruit=="orange"){
$r=get_orange($num);
}
return $r;
}
echo get_fruit2("apple",5)
$r="";
if ($fruit=="apple") {
$r=get_apple($num);
}else if ($fruit=="orange"){
$r=get_orange($num);
}
return $r;
}
echo get_fruit2("apple",5)
2018-03-12