getUser($userId); echo 'Welcome, ' . $user['full_name'] . '!'; ?>
In this example, we use the Phpfox getUserBy function to check if the 'id' field is set. If it is set, it means the user is logged in and we display a welcome message. If it is not set, we display a message asking the user to log in. Package library: Phpfox Core Library