ternario en PHP
print ($marks>=40) ? "pass" : "Fail";
Exuberant Eland
print ($marks>=40) ? "pass" : "Fail";
<?php
$is_user_logged_in = false;
$title = $is_user_logged_in ? 'Logout' : 'Login';Code language: HTML, XML (xml)