php基础学习常量篇
2018-10-19 本文已影响0人
一个普通人的普通话
1.定义变量需要使用 define
关键字 其作用域是全局的
define("easy","every thing is easy is you want to do",true);
echo easy;
ECHO '<BR>';
echo EASY;
function test(){
echo easy;
ECHO '<BR>';
}
test();
结果
every thing is easy is you want to do
every thing is easy is you want to do
every thing is easy is you want to do