| br() | ใช้สร้าง tag br ตามจำนวนที่กำหนด |
|---|---|
| nbs() | ใช้สร้างคำสั่ง ตามจำนวนที่กำหนด |
| heading() | ใช้สร้าง tag hx |
| img() | ใช้สร้าง tag img |
| link_tag( array_link ) | ใช้สร้าง tag link |
| link_tag() | ใช้สร้าง tag link |
| ol() | ใช้สร้าง tag ol |
function:br ( num )
return type:string
content:ใช้สร้าง tag br ตามจำนวนที่กำหนด
example:echo br ( 3 );
function:nbs ( num )
return type:string
content:ใช้สร้างคำสั่ง ตามจำนวนที่กำหนด
example:echo nbs ( 5 );
function:heading ( text, size );
return type:string
content:ใช้สร้าง tag hx
example:echo heading ( "conclude", 2 );
comment:ตัวแปร text คือข้อความที่จะอยู่ภายใน tag hx ตัวแปร size คือกำหนดขนาด ( ค่าที่เป็นไปได้ ได้แก่ 1 ถึง 6 )
function:img ( array_img )
return type:string
content:ใช้สร้าง tag img
example:$imgs = array ( "src"=>"images/panda.gif", "alt"=>"image", "width"=>"200", "height"=>"40" ); echo img ( $imgs );
comment:ตัวแปร array_img ใช้กำหนด attribute โดย key คือ ชื่อแอททริบิวต์ และ value คือค่าข้อมูลของแอททริบิวต์นั้นๆ
function:link_tag ( array_link )
return type:string
content:ใช้สร้าง tag link
example:$links = array ( "href"=>"panda.css", "rel"=>"stylesheet", "type"=>"text/css" ); echo link_tag ( $links );
function:link_tag ( href, rel, type, title )
return type:string
content:ใช้สร้าง tag link
example:echo link_tag ( "panda.css", "stylesheet", "text/css" );
function:ol ( array_list, attribute )
return type:string
content:ใช้สร้าง tag ol
example:$lists = array ( "red", "green", "blue" ); $attribute = array ( "class"=>"boldlist", "id"=>"list" ); echo ol ( $lists, $attribute );
comment:ตัวแปร array_list คือกำหนดรายการ <li> ตัวแปร attribute ใช้กำหนด attribute โดย key คือ ชื่อแอททริบิวต์ และ value คือค่าข้อมูลของแอททริบิวต์นั้นๆ