I want to echo the name of the variable object i'm calling, in this case controller_01.
I'm using get_class, but it wont print the variable name, only the object type :(
<?php
class remoteControl{
private $chip = "Intel64<br />";
public function openCase(){
echo "The controler has a " .get_class($this);
return $this->chip;
}
}
$control_01 = new remoteControl();
echo $control_01-> openCase();
?>