Home >Backend Development >PHP Tutorial >PHP 4.0实现表格状打印_PHP

PHP 4.0实现表格状打印_PHP

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 12:30:221326browse




PHP 4.0实现表格状打印



 /*
 ** 数据表格化
 */

 print("

\n"); // 表格开始
 

 for($Row=1; $Row  {
  print("

\n"); // 开始行

  // do each column
  for($Column=1; $Column   {
   print("

");
  }

  print("

\n"); // 行结束

 }
 
 print("

");//开始列
   print($Row * $Column);//表格元素乘积
   print("
\n"); // 表格结束

?>



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
Previous article:PHP函数点评_PHPNext article:浏览目录_PHP