利用PHP编写一个简易的图形计算器
发布时间:2020-11-06 16:37:12
来源:亿速云
阅读:75
作者:Leah
利用PHP编写一个简易的图形计算器?针对这个问题,这篇文章详细介绍了相对应的分析和解答,希望可以帮助更多想解决这个问题的小伙伴找到更简单易行的方法。
主函数:index.php
图形计算器* {
margin: 0px;
padding: 0px;
}
#contains {
width: 500px;
margin: 20px auto;
background: #0C0;
text-align: center;
}
h2 {
width: 500px;
height: 60px;
}
a {
font-size: 20px;
text-decoration: none;
}
#footer {
width: 300px;
background: #fff;
margin: 0 auto;
padding: 5px 10px;
border-radius: 150px;
}
简易图形计算器
矩形 |
三角形|
ini_set("display_errors", "On"); //开启错误调试
//设置错误报告的级别,除了无关紧要的'注意',其他的报告都输出
error_reporting(E_ALL & ~E_NOTICE);
function __autoload($classname) { //魔术方法 自动加载类
include strtolower($classname).".class.php"; //将类名转化成小写
}
// include "shape.class.php";
// include "rect.class.php";
if (!empty($_GET['acti