php if else single line inside if else code example
Example 1: shorthand if php
$is_admin = ($user['permissions'] == 'admin') ? true : false;
Example 2: one lin if statement php
<?php if ($requestVars->_name == '') echo $redText; ?>
$is_admin = ($user['permissions'] == 'admin') ? true : false;
<?php if ($requestVars->_name == '') echo $redText; ?>