PHP Switch statement
The switch statement is similar to if..else statement only. In many situation, you may need to check / compare different values with the same variable. In that situation switch statement really helps. Switch case is bit faster compare with series of if statement. <?php $x = “announcement”; switch ($x) { case “login”: echo “You are … Read more