文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>[转]类与PHP(VI)

[转]类与PHP(VI)

时间:2007-02-17  来源:PHP爱好者

Classes and PHP
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
Of course, you can't enter column span information with one join, but you can with extra joins. Let's say your array consists of six elements and the third and fifth elements need to span 2 and 3 columns respectively. To do this you can join the ":#" to an intermediate array:
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
$newarray=$arry;
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
$newarray[2]=join(list($newarray[2],"2"),":");
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
$newarray[4]=join(list($newarray[4],"3"),":");
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
$message=join($newarray,"|");
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
$Tbody->TROut($message);
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
Obviously, even more functionality can be added to the class. Also, the code is not idiot proof. If enough people ask, I will add more functionality (email me with your ideas), idiot proof the code and post it.
chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I

chi na it p owe r .comfWa5PAA2mfBkeOIoUzO6POU0I
--Rod
php爱好者站 http://www.phpfans.net 网页制作|网站建设|数据采集.
相关阅读 更多 +
排行榜 更多 +
试着飞手游下载

试着飞手游下载

休闲益智 下载
血染小镇(功能菜单)中文版下载

血染小镇(功能菜单)中文版下载

飞行射击 下载
泰坦之旅高爆版下载

泰坦之旅高爆版下载

角色扮演 下载