how do I get the name of an instance of an object from within a function in the class?
i.e.
class whatever {
function echoInstanceName () {
echo ([getInstanceName] );
}
}
$banana = new whatever;
$banana->echoInstanceName ();
So this would echo "banana".
Is this possible?