| img() | ใช้สร้าง tag img |
|---|
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 คือค่าข้อมูลของแอททริบิวต์นั้นๆ