php get class property code example
Example 1: get class name from object php
// create an object
$bar = new foo();
// external call
echo "Its name is " , get_class($bar) , "\n";
Example 2: php get object class
get_class($object);
// create an object
$bar = new foo();
// external call
echo "Its name is " , get_class($bar) , "\n";
get_class($object);