I need to return multiple values from a function, therefore I have added them to an array and returned the array.
function data(){ $a = "abc&qu
You can add array keys to your return values and then use these keys to print the array values, as shown here:
function data() { $out['a'] = "abc"; $out['b'] = "def"; $out['c'] = "ghi"; return $out; } $data = data(); echo $data['a']; echo $data['b']; echo $data['c'];