| form_label() | ใช้สร้าง label |
|---|
function:form_label ( text, for, attribute )
return type:string
content:ใช้สร้าง label
example:$attribute = array ( "style" => "color:red;" ); echo form_label ( "firstname : ", "firstname", $attribute );
comment:ตัวแปร text ใช้กำหนดข้อความภายใน tag label ตัวแปร for ใช้กำหนดค่าข้อมูลในส่วนขงอ attribute for ตัวแปร attribute ใช้กำหนดแอททริบิวต์ โดย key คือ ชื่อของแอททริบิวต์ และ value คือค่าข้อมูลของแอททริบิวต์นั้นๆ