为什么我写的这程序的$a+$b和$a-$b不能计算,别的能计算啊,求大神解决!!!
$a=$_REQUEST["num1"];
$b=$_REQUEST["num2"];
$fuhao=$_REQUEST["fuhao"];
class Cat{
public function jisuan($a,$b,$fuhao){
switch($fuhao){
case"+":
$a+$b;
echo '$a+$b='.$a+$b;
break;
case"-":
$a-$b;
echo '$a-$b='.$a-$b;
break;
case"*":
$a*$b;
echo '$a*$b='.$a*$b;
break;
case"/":
$a/$b;
echo '$a/$b='.$a/$b;
break;
}
}
}
$cat1=new cat();
$cat1->jisuan ($a,$b,$fuhao);
?>