SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe this is what you searched for :
function data() { // your code return $array; } $var = data(); foreach($var as $value) { echo $value; }