<?php
$site = isset($site) ? $site : "未定义";
echo $site.'<br>';
$site = isset($site) ? $site : "php.cn";
echo $site;
输出结果 =》
未定义
未定义
$site = isset($site) ? $site : "未定义";
相当于给$site初始化了
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!