DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
if else if ternary php
var name = (variable === 1) ? 'foo' : ((variable === 2) ? 'bar' : 'baz');
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#ternary
#php
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit