Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php switch case multiple values per line

<?php
switch ($i) {
    case 0:
    case 1:
    case 2:
        echo "i is less than 3 but not negative";
        break;
    case 3:
        echo "i is 3";
}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: rule In in laravel 
Php :: convert array to stdclass object in php example 
Php :: PDOException::("could not find driver") windows 
Php :: php 8 constructor promotion 
Php :: laravel take value from different array by key 
Php :: php variable in string 
Php :: laravel validation unique two columns 
Php :: php extensions for apache2 
Php :: How to JSON encode a PHP array 
Php :: php numberformatter currency without symbol 
Php :: how to submit same form for different purpose using two submit button in php 
Php :: trim array in map php 
Php :: laravel chunk select 
Php :: composer update php mbstring.so missing 
Php :: php alert yes no 
Php :: php convert to boolean 
Php :: run a php site 
Php :: get class name from object php 
Php :: use multiple pagination in same page laravel 
Php :: larave Soft Deletes 
Php :: how to insert multiple selected 
Php :: array_push 
Php :: export PATH=/Applications/MAMP/bin/php/php5.4.10/bin:$PATH 
Php :: php postgresql number of rows 
Php :: encrypt/decrypt data php 
Php :: print asociative array php 
Php :: php calculate days of a month 
Php :: command to create model with migration in laravel 
Php :: test laravel scheduler 
Php :: php get object class 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =