I have a simple class in PHP that I want to hold some "global" variables if you will, so that I can use them immediately with a default value.
However, the values I set don't seem to stick.
Can anybody help me out here, and let me know what I'm doing wrong? I've tried a constructor (that I possibly did wrong), or just setting the variable value when I create it. Neither work.
Any idea on where I'm being an idiot here?
However, the values I set don't seem to stick.
Can anybody help me out here, and let me know what I'm doing wrong? I've tried a constructor (that I possibly did wrong), or just setting the variable value when I create it. Neither work.
Any idea on where I'm being an idiot here?
