<? PHP class student {// member variable public static $ member; Public $ name; // constructor public function _ construct ($ name) {$ this-> name = $ name;} // function, which operates static variables. The static function public static function enterschool ($ IFEE) {self :: $ response + = $ IFEE;} // public static function getask() {return self: $ response ;}} // create a student $ stu1 = new student ("Xiaoqian"); // 1. call the static method by class name // Student: enterschool (340); // 2. call the static method $ stu1-> enterschool (340) through an instance; $ fee2 = Student: getf EE (); $ stu2 = new student (""); Student: enterschool (340); $ fee3 = Student: getstudent (); echo "the total tuition fee is :". $ fee3; #1. static methods do not allow static operations as non-state variables. Because the system cannot understand who this actually refers. #2. Operate static variables using static methods. #3. The common member method can operate non-static variables or static variables. ?>