Getting database object name
Mon, 01/24/2011 - 23:18
Hi folks. I'm trying to figure out how to get the name of a database object, after it's created. For example,
if ($blnSomeFlag == 'Y')
$objMyTable = new Mytable1;
else
$objMyTable = new Mytable2;is there a property on $objMyTable that will tell me which database object it is?
Thanks.

$className = get_class($myObj);
Excellent! Thank you Alex!