CalParcess.php.

<?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);
?>
时间: 2024-11-04 22:40:34

CalParcess.php.的相关文章