php if function in single line code example Example: if online php <?php echo ($requestVars->_name == '') ? $redText : ''; ?>