Home >Backend Development >PHP Tutorial >PHP学习笔记之用php绘制表格示范

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:14:191431browse

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 "
";
  
 
?>







 
   
   
 
 
     
   
 
  
 



    for ($i=1; $i  {
echo("");
for ($j=1; $j{
$s = $i * $j;
$r = rand(1, 9999);
echo("");

}
echo("");
  }
  ?>
echo(" bgcolor=\"$color[$r]\">  




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn