php reflection method, get class name 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";