shorthand if php
snippet in php

shorthand if php

user8136

$is_admin = ($user['permissions'] == 'admin') ? true : false;