执行 ❯
获得您
自己的 PHP
服务器
×
更改方向
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> <?php // if empty($user) = TRUE, set $status = "anonymous" echo $status = (empty($user)) ? "anonymous" : "logged in"; echo("<br>"); $user = "John Doe"; // if empty($user) = FALSE, set $status = "logged in" echo $status = (empty($user)) ? "anonymous" : "logged in"; ?> </body> </html>
匿名
已登录