Answers for "php get the class name of an object"

PHP
6

php get class name of this

get_class($this);
Posted by: Guest on March-22-2020
1

laravel get class name

$myObject = $em->find(ContactRelation::class, $userId);
echo get_class($myObject);
// Some\Name\Space\Domain\Identity\ContactRelation
Posted by: Guest on October-28-2020

Code answers related to "php get the class name of an object"

Browse Popular Code Answers by Language