Answers for "php if else single line inside if else"

PHP
3

shorthand if php

$is_admin = ($user['permissions'] == 'admin') ? true : false;
Posted by: Guest on May-15-2020
1

one lin if statement php

<?php if ($requestVars->_name == '') echo $redText; ?>
Posted by: Guest on August-17-2020

Browse Popular Code Answers by Language