好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

php的define用法详解

本文讲解php的define用法详解

<?php /*  * define  * */  /*第3个参数:  * false -- 对大小写敏感(默认)  * true -- 对大小写不敏感  * */  define("pai",3.14);  define ("name","LiLei",true);  function testfor($x) {   for($a=$x;$a<=12;$a++) {     echo "现在是$a 点:";     if($a<9) {       echo "敲代码";       echo name;     } else {       echo "睡觉";       echo pai;     }     echo "<br />";   }  }  testfor(10); ?>

查看更多关于php的define用法详解的详细内容...

  阅读:50次