$res stores result query and function output.
When I write
print_r($res);
then output is :
Array ( [0] => Array ( [@out] => 50 [0] => 112 ) )
Now, I want to print values 112 and 50.
And I want to store that value in another variable.
Your array is multidimensional array.so for storing values in to another variable and if you know the keys of the array use this
$value1 = $res[0]['@out'];
$value2 = $res[0]['0'];
to print try this
echo $value1;
echo $value2;
$var1 = $res[0][0];$var2 = $res[0]['@out'];