两个数相加,函数的定义

Original 2019-03-27 17:39:12 541
abstract:<?php header("content-type:text/html;charset=utf-8");echo "两个数相加 ";function add($a,$b){return $a+$b;   }echo add(1,3);?>

<?php

header("content-type:text/html;charset=utf-8");

echo "两个数相加 ";

function add($a,$b){

return $a+$b;

   }

echo add(1,3);

?>


Correcting teacher:天蓬老师Correction time:2019-03-28 10:10:19
Teacher's summary:编程中最重要的就是函数了, 不仅可实现代码复用, 也是代码运行的基本单元

Release Notes

Popular Entries