php新手求解,跟着老师的代码,对比没错啊,php版本是5.2.6的
<?php
class A
{
public static function aa()
{
echo "这是A类aa的输出方法";
}
public static function bb()
{
static::aa();
}
}
class B extends A
{
public static function aa()
{
echo "这是B类aa的输出方法";
}
}
B::bb();
运行后出现Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_VARIABLE in F:\Appserv\www\php\1-3.php on line 13就是那个static::aa();
是因为php版本问题吗