Schreiben Sie, ob und sonst in einer Zeile PHP
$result = ($data->status == 1) ? 'active' : 'disable'
Zamir
$result = ($data->status == 1) ? 'active' : 'disable'
echo ($var1 >= $var2) ? 'this is true' : 'this is false';
<?php if ($requestVars->_name == '') echo $redText; ?>
if ($name == 'world') echo "Hello World!";