<!DOCTYPE html> <html> <body> <?php // 定义对大小写不敏感的常量 define("GREETING", "Welcome to www.layui1.com!", true); echo GREETING; echo "<br>"; // 会输出常量的值 echo greeting; ?> </body> </html>
<?php // 定义对大小写不敏感的常量 define("GREETING", "Welcome to www.layui1.com!", true); echo GREETING; echo "<br>"; // 会输出常量的值 echo greeting; ?>