DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
switch case or case php
switch
(
$your_variable
)
{
case
1
:
case
2
:
echo
"the value is either 1 or 2."
;
break
;
}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#switch
#case
#case
#php
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit