specific code as follows:

 < PHP? / / in the internal sub class or class ":" call the parent class or class, is not a static method call, but the scope resolution operator. Class ParentClass public static'parent var {$my_static = function (test '); self:: who {(); / /'parent' output is not a static analysis of the scope, called $this-> who ('child'); / / output: who (static:); / / delay static binding is not static range analysis, function (who)} call {echo'parent< br>' class ChildClass extends ParentClass;}} {public static = $my_static'child var function who '; (br>'child<) {echo}};'; $obj = new (ChildClass); $obj- > test (echo); ChildClass:: $my_static; / / 


static call




child var

summarized above is called static class Xiaobian to introduce the PHP I want to help you with the difference between the scope resolution operator and the scope analysis operator. If you have any questions, please leave a message for me. Thank you for your support for the home website of the script!

This concludes the body part