| limit_words() | ใช้คืนค่า ข้อความ ตามจำนวนที่กำหนด ( limit ) จากประโยคที่กำหนด ( text ) และเพิ่มคำปิดท้าย ( end ) |
|---|
method:limit_words ( text, limit, end );
return type:string
special:static
content:ใช้คืนค่า ข้อความ ตามจำนวนที่กำหนด ( limit ) จากประโยคที่กำหนด ( text ) และเพิ่มคำปิดท้าย ( end )
example:$text = "Today, Begin of war of the world."; echo text::limit_words ( $text, 4, "...." );