PHP is not that kind of language. While you could cheat, like above, this quickly becomes so dirty, you end up with a horrible mess.
There is a high chance you could design around your problem. For example use some kind of state or context object and pass it around.
PHP is not that kind of language. While you could cheat, like above, this quickly becomes so dirty, you end up with a horrible mess.
There is a high chance you could design around your problem. For example use some kind of state or context object and pass it around.