if on same line php code example Example: one lin if statement php <?php if ($requestVars->_name == '') echo $redText; ?>