switch ($cond) {
        case label:
          break;
        case label:
          break;
        case label:
          break;
        default:
      }
      Php language logo

      switch

      PHP recipes

      The code in the example will execute the code inside the case labelled label only if the condition is true. If the condition is false, the code will execute the code inside the case labelled default.

      Shortcut: switch

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.