為什么不顯示顏色
<?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;
?>
我可是要成為PHP大咖的人
Take a look at the direct output to see if there is any color