簡體   English   中英

IF語句PHP中的可聞條件

[英]Souble condition in IF statement PHP

大家復活節快樂! :)

有誰知道這種雙重IF條件出了什么問題:

 if (empty($_POST['request_article_form'])) and empty($_POST['article_number_article_table']))    {//blabla }

來自IDE的錯誤:修復[1/1]語法錯誤,第37行出現意外的T_LOGICAL_AND

')'額外添加

用這個

if (empty($_POST['request_article_form']) and empty($_POST['article_number_article_table'])) { 
    // do something
}

僅計算括號,將其打開3次,關閉4次。

if (empty($_POST['request_article_form']) and empty($_POST['article_number_article_table'])) { 
    // do something
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM