Difference between static:: and $this::
问题 I know there is a difference between static:: and self:: like in this example ( from https://stackoverflow.com/a/13613718/2342518 ) <?php class One { const TEST = "test1"; function test() { echo static::TEST; } } class Two extends One { const TEST = "test2"; } $c = new Two(); $c->test(); Which returns test2 when static::TEST is used and test1 when self::TEST is used. But it also returns test2 when $this::TEST is used. static::TEST can be used inside a static method, whereas $this::TEST