if else in one line php

45

<?php if ($requestVars->_name == '') echo $redText; ?>
($var > 2 ? echo "greater" : echo "smaller")

Comments

Submit
0 Comments