Quote:
Originally Posted by --kml--
oo maybe change new to static?
maybe will worK? xD 
|
That is only beneficial if:
- The function is being called very frequently. Here it is not
- If the variable requires a lot of memory allocation . Here it does not
- If you wish the data to remain static [stored in memory between function calls]. Here it is not necessary
Also, FYI, you cannot set a static variables value while declaring.
PHP Code:
//You cannot do:
static iVar = 5;
//you CAN do:
static iVar; iVar = 5;
__________________