PHP 雜項函數
defined() 函數檢查某常量是否存在。
若常量存在,則返回 true,否則返回 false。
defined(name)
<?php define("GREETING","Hello world!"); echo defined("GREETING"); ?>
輸出:
1