PHP 8.5.0 Alpha 4 available for testing

Voting

: min(six, nine)?
(Example: nine)

The Note You're Voting On

MelkiySoft
7 years ago
<?php

class A
{

}

class
B extends A
{
public static function
foo () {
echo
'new self: ';
var_dump(new self());
echo
'<br>new parent: ';
var_dump(new parent());
echo
'<br>new static: ';
var_dump(new static());
}
}

class
C extends B
{

}

c::foo();
===========================
output:
//new self: object(B)#1 (0) { }
//new parent: object(A)#1 (0) { }
//new static: object(C)#1 (0) { }

<< Back to user notes page

To Top