I have an array that I loop through with for each loop it returns only the first iteration but if I change it to echo it prints all of them to the screen, new to PHP not sure wh
return after loop iterates.
function getData($values){ $tags = []; foreach ($values as $key => $value){ $tags[] = "". $key . " " . $value .""; } return $tags; } $SubmitedResult->SerialisedForm = getData($data);
". $key . " " . $value ."