PHP 8.5.0 Alpha 1 available for testing

Voting

: max(seven, three)?
(Example: nine)

The Note You're Voting On

MikeT
2 years ago
Word of caution static::class doesn't always work as you might expect
<?php
namespace NameSpace;

class Class
{
static function
getClass()
{
return static::class;
}
}

Class::
getClass()
?>
may return \NameSpace\Class or Class depending on context

<< Back to user notes page

To Top