Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php switch case statement

<?php

$i=250;
Switch($i)
{
Case 150:
echo "Value is 150";
Break;

Case 250:
echo "Value is 250";
Break;

Case 350:
echo "Value is 350";
Break;

Case 450:
echo "Value is 450";
Break;

Default:
echo "Enter Correct Value";
Break;
}

?>
Source by www.codeexampler.com #
 
PREVIOUS NEXT
Tagged: #php #switch #case #statement
ADD COMMENT
Topic
Name
6+9 =