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

Php Basic True / False Declaration

Similar Code Examples