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