01-21-2008, 11:34 AM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
Is this a joke of some sort? 'cuz I really don't get it. First of all, the big mistake is that you don't have a name for your method. Next to that, why would you want to do what you just wrote? I don't even want to know whether that is valid or not (but I'm pretty sure it isn't). I would never want to write a function that gets a variable as a parameter and returns it unchanged, but rather just use the damned variable. Especially not with a class constant or static variable, which is always available from within the class is declared, with self::const/$static.
Other than that, you're crazy 
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|