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
The data function is returning an array, so you can access the result of the function in the same way as you would normally access elements of an array:
Or you could use the list() function, as @fredrik recommends, to do the same thing in a line.
list()