Answers for "if simple php"

PHP
3

shorthand if php

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

php if simple

echo empty($address['street2']) ? "Street2 is empty!" : $address['street2'];
Posted by: Guest on November-07-2020

Browse Popular Code Answers by Language