Search
 
SCRIPT & CODE EXAMPLE
 

PHP

select case default php


<?php
switch ($i) {
    case 0:
        echo "i equals 0";
        break;
    case 1:
        echo "i equals 1";
        break;
    case 2:
        echo "i equals 2";
        break;
    default:
       echo "i is not equal to 0, 1 or 2";
}
?>

Comment

php switch case default

<?php
// switch statement:

switch ($i) {
    case 0:
        echo "i equals 0";
        break;
    case 1:
        echo "i equals 1";
        break;
    case 2:
        echo "i equals 2";
        break;
    default:
   	echo "default message";
}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: get index of element in array php 
Php :: php console output 
Php :: php pdo get database name 
Php :: choose a random word from an array php 
Php :: php artisan serve specify ip 
Php :: php get id from url 
Php :: php find differences between two arrays 
Php :: var_dump beautifier 
Php :: validator number laravel 
Php :: how to get last array element in php 
Php :: php mysql insert data 
Php :: php ip address of visitor 
Php :: php remove quotes from string 
Php :: using js variable in php 
Php :: change background color php 
Php :: php array_merge 
Php :: php copyright footer 
Php :: iconify cdn 
Php :: PHP wordwrap() Function 
Php :: php temp directory 
Php :: php reload current page 
Php :: php get remote file last modified 
Php :: twig symfony get route 
Php :: Check duplicate email using Jquery validation in laravel 
Php :: wordpress update post php 
Php :: how tdo you convert a stringto lowercase in php 
Php :: wordpress escape for html 
Php :: for loop php increment by 2 
Php :: php 301 redirect 
Php :: laravel abort 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =