Hello,
I want to learn the principal of this code, it works but I don't know if it can be done a different way without creating the variable $new
function fruits(){
$basket=array('john'=>'apple','lisa'=>'pear','peter'=>'cherry','jack'=>'grapes');
return $basket;
}//function fruits(){
$new=fruits();
print_r($new);
maybe an echo directly to the function fruits? How?