PHP 8.5.0 Alpha 1 available for testing

Voting

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

The Note You're Voting On

jjanak at webperfection dot net
10 years ago
>= 5.5

::class
fully qualified class name, instead of get_class

<?php
namespace my\library\mvc;

class
Dispatcher {}

print
Dispatcher::class; // FQN == my\library\mvc\Dispatcher

$disp = new Dispatcher;

print
$disp::class; // parse error

<< Back to user notes page

To Top