$age = 20; print ($age >= 18) ? “Adult” : “Not Adult”;
// ternary operator (?:)
$age = 20;
print ($age >= 18) ? "Adult" : "Not Adult";
Share This
0Shares
Message from SUPEDIUM®
Welcome to SUPEDIUM®, to ensure you have seamless experience when browsing our website, we encourage all users to register or login. It only takes less than 2 minutes to register an account :)
This will close in 30 seconds
Be the first to comment