class a
{
public static function w()
{
echo __CLASS__.'<br/>';
}
public static function e()
{
static::w();
//self::w();
}
}
class b extends a
{
public static function w()
{
echo __CLASS__;
}
}
b::e();
静态方法绑定
![](https://img2024.cnblogs.com/blog/35695/202407/35695-20240713070336838-1837943664.jpg)