Determine whether it is empty

  • Last update:  2021-05-11
  • I. Description

    How to judge whether the parameter is empty, or whether the value of a cell is empty, etc.

    II. Reason

    There are two cases for null, one is the value is null, then the judgment formula is for example $para==null; the other is the value is an empty string, then the judgment formula is $para=='', if it is not clear enough, the judgment may be unsuccessful due to use incorrectly.

    III. Solution

    You can ignore whether it is null or an empty string, we recommend using len($para)==0 to determine whether the value is null or an empty string. This way, the problem of whether the value is null or an empty string can be avoided.


    Attachment List


    Theme: Report Application
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy