| anchor() | ใช้สร้าง code ที่เป็น tag a |
|---|
function:anchor ( href, text, attribute )
return type:string
content:ใช้สร้าง code ที่เป็น tag a
example:$attribute = array ( "id"=>"anchor", "class"=>"anchor" ); echo anchor ( "product/form", "create", $attribute );
comment:ตัวแปร href ใช้กำหนด path ที่ต้องการ link ไป ตัวแปร text ใช้กำหนด ข้อความที่ต้องการให้เป็น link ตัวแปร attribute ใช้กำหนด attribute โดย key คือ ชื่อแอททริบิวต์ และ value คือค่าข้อมูลของแอททริบิวต์นั้นๆ