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
网友评论