标签:内置函数 而且 http tps ble smarty 括号 div 语法
下面是可用的运算符列表,使用中都会放到元素的中间并且用空格分隔。 注意列表中[方括号]的是可选的,而且还会列出对应PHP的表达式。
运算符 | 别名 | 语法示例 | 含义 | 对应PHP语法 |
---|---|---|---|---|
== | eq | $a eq $b | 等于 | == |
!= | ne, neq | $a neq $b | 不等于 | != |
> | gt | $a gt $b | 大于 | > |
< | lt | $a lt $b | 小于 | < |
>= | gte, ge | $a ge $b | 大于等于 | >= |
<= | lte, le | $a le $b | 小于等于 | <= |
=== | $a === 0 | 绝对等于 | === | |
! | not | not $a | 非 (一元运算) | ! |
% | mod | $a mod $b | 取模 | % |
is [not] div by | $a is not div by 4 | 取模为0 | $a % $b == 0 | |
is [not] even | $a is not even | [非] 取模为0 (一元运算) | $a % 2 == 0 | |
is [not] even by | $a is not even by $b | 水平分组 [非] 平均 | ($a / $b) % 2 == 0 | |
is [not] odd | $a is not odd | [非] 奇数 (一元运算) | $a % 2 != 0 | |
is [not] odd by | $a is not odd by $b | [非] 奇数分组 | ($a / $b) % 2 != 0 |
标签:内置函数 而且 http tps ble smarty 括号 div 语法
原文地址:https://www.cnblogs.com/zhuyongzhe/p/10290393.html