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

PHP 4.0实现表格状打印_PHP

WBOY
Release: 2016-06-01 12:30:22
Original
1259 people have browsed it




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"); // 表格结束

?>



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template