欢迎光临
我们一直在努力

算术操作符-PHP教程,其它文章

建站超值云服务器,限时71元/月

这些工作和基本的学校里教的内容相似。

table 7-1. arithmetic operators(表7-1算术操作符)

example name result

$a + $b addition sum of $a and $b.?/font>

$a – $b subtraction remainder of $b subtracted from $a.?/font>

$a * $b multiplication product of $a and $b.?/font>

$a / $b division dividend of $a and $b.?/font>

$a % $b modulus remainder of $a divided by $b.

其中,除法操作符“/”返回一个整数值(整数除法的结果)如果两个操作数是整数(或者是被转化成整数的字符串)的话。如果任意一个操作数是浮点数,那么将进行浮点运算。

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 算术操作符-PHP教程,其它文章
分享到: 更多 (0)

相关推荐

  • 暂无文章