0

It's not possible return an array?

18th Aug 2016, 12:27 PM
Nox Drak
Nox Drak - avatar
2 Answers
0
I believe that it's possible... haven't tried it, but the tip was a little sparse on the explanation.
22nd Aug 2016, 12:38 PM
Jeremy Self
Jeremy Self - avatar
0
It is possible and tried that many times. function returnArray() { return array (1, 2, "Nox"); } now let's access the return array then print Nox: $data = returnArray(); echo "Welcome ". $data[2]; // it will print Welcome Nox Note: you can return associated array as well
2nd Nov 2016, 3:52 PM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar