I've been looking if there exists something like a static initializer in PHP.
Here is a static method as a Java example:
public class Foo {
static { //This is what I mean (Does this exist in other languages like PHP?
//THIS IN PHP
}
}
I found what it's name (static initializer). It is used the first time the Class its loaded. Seems like theres not static initializer in PHP.