In PHP there are multiple ways to get multiple return values in a "tuple-like" style.
This GIST explores a few ways of doing so.