Search
 
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
Name
9+1 =