Just see this code
class A{
var $str;
function display(){
return $this->str;
}
}
class B extends A{
function B($v){
$this->str="<piece of cake=$v>";
}
}
$j=new B("strawberry");
echo $j->display();
I thought the output must be "<piece of cake=strawberry>"
But no output WHY??