如何学习PHP define()
1、1.搭建Wamp环境
2、2.在根目录下创建web.php文件,且在文件中输入:
<?php
define("HF","Hi Friend!");//1.define函数如何理解;
echo constant("HF");//1.case_insensitive参数默认是 false(大小写敏感)2.constant函数如何理解; 3.constant内的参数如何理解;
?>
3、3.在浏览器中输入:http://localhost/web.php ,便可插叙代码实现的结果。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:46
阅读量:108
阅读量:142
阅读量:167
阅读量:107