nope, no static variables 🙁
you have to use globals and do like
function ObjectConstructor() {
global $someVar;
$someVar++;
}
function objectCount() {
global $someVar;
return $someVar;
}
You can use :: to call methods statically, but since you can't have class variables, you can only use them like normal methods
class A {
function display() { echo 'hi'; }
}
A::display();
That's all you can do to my knowledge.
Hope that helps.