热搜:NVER node 开发 php

PHP学习笔记之用php绘制表格示例

2024-08-12 18:35:01
PHP学习笔记之用php绘制表格示例









用php绘制表格示例


<?php
  define(MAX_NUM, 20);
  $bc = "000000";
  $color = array();
  for ($i=0; $i   {
$color[$i] = "#" . $bc;
$bc += 0x00000f;
//echo($color[$i] . "\t");
  }
  echo "
";
  
 
?>







 
   
   
 
 
     
   
 
  
 



  <?php
  for ($i=1; $i   {
echo("");
for ($j=1; $j {
$s = $i * $j;
$r = rand(1, 9999);
echo(" echo(" bgcolor=\"$color[$r]\">   ");

}
echo("");
  }
  ?>