运行 ❯
获取
自己的 PHP
服务器
×
更改方向
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> <?php $cookie_name = "user"; if(!isset($_COOKIE[$cookie_name])) { echo "Cookie named '" . $cookie_name . "' does not exist!"; } else { echo "Cookie is named: " . $cookie_name . "<br>Value is: " . $_COOKIE[$cookie_name]; } ?> </body> </html>