趁年轻赶紧跑吧
2017-02-10 23:45
$row = $no%$maxLine?$no%$maxLine:$maxLine
以上中$no%$maxLine是个什么运算?
这个是个$no%$maxLine?$no%$maxLine:$maxLine 三元运算
第一次$no%$maxLine问的是 $no这个值能被$maxLine整除吗
会返回真或者假2个布尔值
如果不能那么执行$row =$no%$maxLine算数运算之后的结果
如果能那么$row =$maxLine这个值
PHP入门篇
456324 学习 · 6539 问题
相似问题