快精灵印艺坊 您身边的文印专家
广州名片 深圳名片 会员卡 贵宾卡 印刷 设计教程
产品展示 在线订购 会员中心 产品模板 设计指南 在线编辑
 首页 名片设计   CorelDRAW   Illustrator   AuotoCAD   Painter   其他软件   Photoshop   Fireworks   Flash  

 » 彩色名片
 » PVC卡
 » 彩色磁性卡
 » 彩页/画册
 » 个性印务
 » 彩色不干胶
 » 明信片
   » 明信片
   » 彩色书签
   » 门挂
 » 其他产品与服务
   » 创业锦囊
   » 办公用品
     » 信封、信纸
     » 便签纸、斜面纸砖
     » 无碳复印纸
   » 海报
   » 大篇幅印刷
     » KT板
     » 海报
     » 横幅

[转]类与PHP (VI)

Classes and PHP

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:



$newarray=$arry;
$newarray[2]=join(list($newarray[2],"2"),":");
$newarray[4]=join(list($newarray[4],"3"),":");
$message=join($newarray,"|");
$Tbody->TROut($message);



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.

--Rod





返回类别: 教程
上一教程: 关于session的几个补充函数
下一教程: 用对话框的方法打开IE的浏览器窗口

您可以阅读与"[转]类与PHP (VI)"相关的教程:
· 第九节--绑定 -- PHP5的类与对象 [9]
· [转]类与PHP (V)
· 第十一节--重载 -- PHP5的类与对象 [11]
· 第七节--类的静态成员 -- PHP5的类与对象 [7]
· 第十节--抽象方式和抽象类 -- PHP5的类与对象 [10]
    微笑服务 优质保证 索取样品