But you may just declare it at the very beginning of your code (before your main function). Then it is a superglobal variable. But bear in mind that a superglobal variable may be changed by another function during a wait() of the function you use it in.