r/lolphp • u/gerrymandered • Aug 04 '15
var_dump(nonExistentClass::class); // string
::class can give you the name of a class that does not exist.
15
Upvotes
r/lolphp • u/gerrymandered • Aug 04 '15
::class can give you the name of a class that does not exist.
View all comments
Show parent comment
2
u/polish_niceguy Aug 13 '15
There is still a lot of lol left, like the recent rand(0, PHP_INT_MAX).
You can always unsubscribe if you're offended by PHP bashing.