still learning some of the finer parts of PHP, i have a function that returns an array of arrays. And on the times that it is only returning a single "array" i use the below code to save having to reference it as a multi dimensional array. Is there a way to do this on a single line of code? i know it doesnt make much of a differance in this specific scenrio, but just curious if i am missing a short hand of php that might be handy other times.
$res_resource=fetch($stmt_resource); //returns array of arrays
$res_resource=$res_resource[0];