<?php
define("HOST","localhost");
define("USER","root");
define("PASSWORD","123456",true);
echo HOST;
echo "<p>";
echo USER;
echo "<p>";
echo defined(USER);
echo "<p>";
echo PASSWORD;
echo "<p>";
echo password;
echo true;
echo false;
?>
defined返回布尔类型的值 用echo输出的话什么都没有
结果如下
localhost
root
123456
1234561
刚刚开始学习php echo可以用来输出boolean类型的值吗
qq_花开花谢_0
临摹微笑
慕虎7371278