Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

switch case php

$fruit = "apple";
switch ($fruit) {
  case "apple":
    echo "doctor";
    break;
  case "banana":
    echo "monkey";
    break;
  default:
   	echo "things";
}//doctor
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #switch #case #php
ADD COMMENT
Topic
Name
3+8 =