I have a function that returns an array of named values ['upper','lower','chosen']
. To read the upper
value, I do this
$returned = myfunction($input1, $input2);
$upper = $returned['upper'];
Is there any way to get it all done in 1 line, maybe like this, but this syntax doesn't work. Any other way?
$upper = myfunction($input1, $input2)['upper'];