[eluser]WanWizard[/eluser]
That only works if myFunction1 somehow calls myFunction2.
If you are talking about multiple page requests, remember that the web is stateless, myFunction2 doesn't know there was a previous request to that same controller and myFunction1 was executed. Sessions are indeed the preferred option to pass data from one request to the next.
Maybe it's not a bad idea to read up on the basics of PHP and web development, it will save you a lot of frustration...