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
Maybe this is what you searched for :
function data() { // your code return $array; } $var = data(); foreach($var as $value) { echo $value; }