Mark Pattison
0
Q:

php inline if

/* most basic usage */
$var = 5;
$var_is_greater_than_two = ($var > 2 ? true : false); // returns true
4
$result = ($data->status == 1) ? 'active' : 'disable'
0
<?php if ($requestVars->_name == '') echo $redText; ?>
0

New to Communities?

Join the community