[英]PHP If X greater than Y by more than Z
我正在嘗試編寫PHP IF
語句:
If X is greater than Y by more than Z
這可能嗎?
我找不到在'運營商的任何WS3運營商也不是在“否則如果” PHP否則如果還嘗試了谷歌搜索大於y超過žPHP如果x較大
我認為您只是想做:
if (($X - $Y) > $Z) {...}
<?php
//it will full fill your first condtion that `$x has to be greater than $y`
// and second one is well that `$x-$y` has to be greater than $z.
if(($x-$y)>$z)
{
echo 'hurray';
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.