<?php require_once "OperSerVice.class.php"; //接受三个数 //isset if(!isset($_REQUEST[‘NUM1‘])){ $num1=$_REQUEST[‘NUM1‘];} if(!isset($_REQUEST[‘NUM2‘])){ $num2=$_REQUEST[‘NUM2‘];} if(!isset($_REQUEST[‘oper‘])){ $oper=$_REQUEST[;OPER‘];} //创建对象 $OperSerVice=new OperSerVice(); echo $OperSerVice->getResult($num1,$num2,$oper); ?>
原文:http://www.cnblogs.com/xujing6/p/5990717.html