Categories
PHP 5

PHP short of statement (Ternanry)

More info can be found at davidwalsh


$message = 'Hello '.($user->is_logged_in() ? $user->get('first_name') : 'Guest');