class Employee
{
public static $favSport = "Football";
public static function watchTV()
{
echo "Watching ".static::$favSport;
}
}
class Executive extends Employee
{
public static $favSport = "Polo";
}
echo Executive::watchTV();
Parse error: syntax error, unexpected T_STATIC on line 7Parse error: Syntaxfehler, unerwartete T_STATIC
Warum erhalte ich Parse error & und wie man es beheben? Vielen Dank!
Was ist die Rückkehr von phpversion()? – powtac