Answers for "$age = 20; print ($age >= 18) ? "Adult" : "Not Adult";"

PHP
0

$age = 20; print ($age >= 18) ? "Adult" : "Not Adult";

// ternary operator (?:)
$age = 20; 
print ($age >= 18) ? "Adult" : "Not Adult";
Posted by: Guest on August-03-2020

Code answers related to "$age = 20; print ($age >= 18) ? "Adult" : "Not Adult";"

Browse Popular Code Answers by Language