php conditional statements single line code example
Example 1: if online php
<?php echo ($requestVars->_name == '') ? $redText : ''; ?>
Example 2: one lin if statement php
<?php if ($requestVars->_name == '') echo $redText; ?>
<?php echo ($requestVars->_name == '') ? $redText : ''; ?>
<?php if ($requestVars->_name == '') echo $redText; ?>