DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php multi elseif statement ternary
$foo = 1; $bar = ($foo == 1) ? "1" : (($foo == 2) ? "2" : "other"); echo $bar;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#php
#multi
#elseif
#statement
#ternary
ADD COMMENT
Topic
COMMENT
Name
8+5 =
Submit