ifelseifend

    0

    9

    lucycodes42

    PHP recipes

    The code above evaluates the conditional expressions and ensures that the first matching condition is True. If no condition matches, the elseif is evaluated and so on. The code will ultimately end with an endif block that will execute the code in the else block if the evaluation of the conditional expressions concludes that there is no match.

    Shortcut: ifelseifend

    if (cond):
    elseif (cond):
    else:
    endif;
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.