DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
$age = 20; print ($age >= 18) ? "Adult" : "Not Adult";
// ternary operator (?:) $age = 20; print ($age >= 18) ? "Adult" : "Not Adult";
PREVIOUS
NEXT
Tagged:
#print
ADD COMMENT
Topic
COMMENT
Name
9+1 =
Submit