PHP 8.5.0 Beta 1 available for testing

Voting

: two plus five?
(Example: nine)

The Note You're Voting On

Andrea Giammarchi
17 years ago
About static parameters, these work as expected.
<?php
class A {
protected static
$__CLASS__ = __CLASS__;
public static function
constructor(){
return static::
$__CLASS__;
}
}

class
B extends A {
protected static
$__CLASS__ = __CLASS__;
}

echo
B::constructor(); // B
?>

<< Back to user notes page

To Top