Jake, as you probably already know you usually have to give the class name when attempting to get a static variable, i.e.

YourClassName::$bob;

You *can* dynamically refer to a static class variable from within an object without knowing the name of the class; this is what self is for. i.e.

class YourClassName {
  function getStatic($var) {
    return self::$var;
  }
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to