為什么執(zhí)行不出來
<?php
header('content-type:text/html;charset=utf-8');
/**
?* 參數(shù)的例子
?* 返回一個3行2列表格
?*/
/**
?* 創(chuàng)建3行2列的表格
?* @return? string
?*/
function createTable(){
?? ?$table="<table border='1' cellpadding='0' cellspacing='0' width='80%'>";
?? ??? ?for($i=1;$<=3;$i++){
?? ??? ??? ?$table.="<tr>";
?? ??? ??? ??? ?for($j=1;$j<=2;$j++){
?? ??? ??? ??? ??? ?$table.="<td>x</td>";
?? ??? ??? ??? ?}
?? ??? ??? ?$table.="</tr>";
?? ??? ?}
?? ?$table.="</table>";
?? ?return $table;
}
echo? "createTable()"
?>
2017-11-25
for($i=1;$<=3;$i++){? 少個i
最后一行不加引號