I'm trying to understand how static property works.My example:
class Model_Cart{
static public $_a;
}
I created object of this class in different scripts. Script 1:
Model_Cart::$_a = true;
var_dump(Model_Cart::$_a);
Output is "true".
But if I execute second script after:
var_dump(Model_Cart::$_a)
Output is NULL.
I expected that static variable is shared beetwen all instance of class. Can you explain this behaviour?