Is it possible to return a loop? not the result but the loop it self. I want to create a function in php. For example like this.
function myloop($sql){ $quer
No.
You could, for instance, return an anonymous function which may contain a loop, but you can only return values from functions, not language constructs.