3
The Basics
The basic object operations have notchanged since PHP 4.
class my_obj {var $foo;function my_obj() {// constructor$this->foo = 123;}function static_method($a) {return urlencode($a);}}$a = new my_obj;// instantiate an object$a->my_obj();// method callsmy_obj::static_method(123);// static method call
Leave a Comment