您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php动态实现表格跨行跨列实现代码_PHP教程

2025/6/18 6:39:35发布12次查看
复制代码 代码如下:
/*
* author:xudafeng@126.com
* blog:http://www.xdf.me
* date:2012.7.28
*/
class danteng {
function init($col1_name, $col2_name, $col3_name, $time_unit) {
echo . $col1_name . . $col2_name . . $col3_name .
;
}
function baobiao_danteng($name, $time_unit, $pro_name, $pre_name) {
echo $name . $pro_name[0] . ;
for ($i = 0; $i echo . $pre_name . $i . ;
}
echo
;
for ($j = 0; $j echo . $pro_name[($j + 1)] . ;
for ($i = 0; $i echo . $pre_name . $i . ;
}
echo ;
}
}
function finish() {
echo ;
}
}
?>
调用方法如下:
复制代码 代码如下:
$init = new danteng();
$init -> init('类型', '项目', '时间单元', $time_num);
$init ->; baobiao_danteng('伏羲', $time_num, $fuxi_pro, 'pre_n');
$init ->; baobiao_danteng('女娲', $time_num, $nvwa_pro, '单元');
$init ->; baobiao_danteng('盘古', $time_num, $pangu_pro, '啊');
$init ->; baobiao_danteng('小冶', $time_num, $pangu_pro, '蛋子');
$init ->; finish();
http://www.bkjia.com/phpjc/326139.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/326139.htmltecharticle复制代码 代码如下: ?php /* * author:xudafeng@126.com * blog:http://www.xdf.me * date:2012.7.28 */ class danteng { function init($col1_name, $col2_name, $col3_name, $time_un...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product