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