使用函数 求圆的面积

<?php
/**
使用函数 求圆的面积
**/
function circle($n){
    define('PI',3.14);
    echo PI * $n * $n;
}
circle(3);

?>

猜你喜欢

转载自www.cnblogs.com/xm666/p/11163286.html