www.3112.net > php注释代码
php注释代码
|
$this->setCompileDir('saemc:\/\/yzblog/');//试试下面的$this->setCompileDir("saemc:\/\/yzblog/"); 楼上根本没看问题
两种格式//echo "adfas"; 注释一行/*注释一段代码$a = 'asdfasdf'; echo $a;*/
有两种:用双斜杠 // 这种是注释掉一行代码比如//$message = 'abc';用 /* 和 */ 这种是注释掉一大段的,比如/*$today = 'tomorrow';*/
单行注释:// 或 #多行注释:/* */
<?phpsession_start();include( "func_js.php" ); //包含一个js函数文件if (!$CONF_MYSQL){ //判断是否设置MYSQL include( "conf_mysql.php" ); //包含MYSQL配置文件}switch($_GET['go']){ //根据用户提交的go参数的值做不同的操作 case
<body> <table border="1" height="150" width="350" cellspacing="0" align="center" bordercolor="red"> <tr> <?php $num = 4; $k = 1; while($k<=16) { if($k % $num == 0)//如果k是4的倍数,这个实际上就是余数为0的时候,{ if($k==
a>'config.php"选择使用哪个数据库$result = mysql_query("SELECT * FROM `sort` WHERE `parentid`=$m order by displayorder";|'"a href=type;**样式可能为  !$row13=mysql_fetch_row($res13)){ echo $str3.$str1.$str2.'.= '-';** * menu 函
<?php//页面编码gb2312//一个汉字2个字节,,所以$length的长度应该是你要截取的2倍//比如你要取 中华 2个字,,则长度应该是4//strlen函数取到的字符串长度是以字节来计算的//下面9个汉字,用strlen取到的值是18//substr截取的字符串也是以
<?php $styleclass="333"; include("admin/config.php"); //加在配置文件 /** 样式可能为 |-类别一 |--类别1
asp注释: 'c#: /**/ 与//c++: /*..*/ 与//vb: '
All rights reserved Powered by www.3112.net
copyright ©right 2010-2021。