After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:PHP function basic syntax custom function
為什么我這個代碼不顯示顏色 <?php function test($color1,$color2="red"){ echo '<table width="800px" border="1px">'; for($i=1;$i<11;$i++){ if($i%2==0){ echo '<tr bgcolor:$color2>'; }else{ echo '<tr bgcolor:$color1>'; } for($j=1;$j<11;$j++){ echo '<td>'.$j.'×'.$i.'='.$i*$j.'</td>'; } echo '</tr>'; } return ; echo '</table>'; } $a=test('green'); echo $a; ?>
2019-02-140個贊