Consider the following codes:
[PHP]class x
{
function get_instance_va r_name(){
#HOW DO I GET THE NAME OF THE CURRENT INSTANCE???
return($instanc e_name)
}
}
$santas_red_und erpants = new x;
print $santas_red_und erpants -> get_instance_va r_name();
[/PHP]
How do I get get_instance_na me() to find the name of the current instance, which is santas_red_unde rpants
[PHP]class x
{
function get_instance_va r_name(){
#HOW DO I GET THE NAME OF THE CURRENT INSTANCE???
return($instanc e_name)
}
}
$santas_red_und erpants = new x;
print $santas_red_und erpants -> get_instance_va r_name();
[/PHP]
How do I get get_instance_na me() to find the name of the current instance, which is santas_red_unde rpants
Comment