Home >Backend Development >PHP Tutorial >Photoshop learning PHP learning simple calculator implementation code

Photoshop learning PHP learning simple calculator implementation code

WBOY
WBOYOriginal
2016-07-29 08:45:281107browse

复制代码 代码如下:




PHP实现简单计算器
$sum=$_GET["num1"]/$_GET["num2"];
break;
case "%":
$sum=$_GET["num1"]%$_GET["num2"];
break;
}
}
}
?>










if(isset($_GET["sub"]))
{
echo '';
}
?>

计算器


">



">


';
if($num1 && $num2 && $numa && $numb)
{
echo "结果是:".$_GET["num1"]." ".$_GET["ysf"]." ".$_GET["num2"]." = ".$sum;
}
else
{
echo $message;
}
echo '




 php学习之简单计算器实现代码

以上就介绍了photoshop学习 php学习之简单计算器实现代码,包括了photoshop学习方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn