Hi! > 1. get_class($object) - looks bad and long
There's nothing bad in calling functions. Functions are part of PHP and are completely OK. > 2. Illogically - Bar::class valid syntax, $object::class invalid > syntax. 3. Function call get_class($object) is slower Unless you code is doing get_class literally millions of times, and it's basically all it does, it does not matter. This kind of "optimization" does not lead to anything but ugly code and waste of time. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php