Friday, May 18th

Last update01:16:07 AM GMT



  • Create an account
    *
    *
    *
    *
    *
    Fields marked with an asterisk (*) are required.

About Me

Basic Information

About Me
joomla use เซ่อ
ประเภท
บุคคล
Gender
Male
Birthday
09/12/1962
Hometown
kohchang
About me
i love joomla.

Contact Information

Mobile phone
089-4031997
Land phone
039-553105
Address
ตู้ ปณ. 1
ไปรษณีย์ เกาะช้าง
อ.เกาะช้าง จ.ตราด
23170
City / Town
ตราด
Country
Thailand
Website
www.salakphet.com
plaraa
plaraa
3 years ago
  • Karma
  • Member since
  • วันเสาร์ที่ 27 มิถุนายน 2009 เวลา 19:21 น.
  • Last online
  • 3 years ago
  • Profile views
  • 1269 views
jomcomment
ถ้ายังไม่ได้ ให้ลองดูค่าตัวอื่นมาใช้ดูนะครับ
http://docs.joomla.org/JString/1.5
81 days ago
myarticles
DOCMan LaiThai removed My Articles application
430 days ago
myarticles
DOCMan LaiThai added My Articles application
430 days ago
groups
lungkao added a new wall post in the group, Tienda ecommerce
ตอนนี้ ขอดูรายละเอียดก่อนครับเรื่องแปลจะแบ่งกันแปลเป็นส่วนๆ ขอแยกก่อน
543 days ago
groups
lungkao uploaded a new avatar for the group, Tienda ecommerce
550 days ago
friends
ziggaza and keeratis are now friends
592 days ago
myblog

articlesโดยปกติ การเขียน php ให้ตัดคำภาษาอังกฤษนั้น มันไม่ได้ยากเลย เพียงแค่ใช้ substr ที่เป็นฟังก์ชันของ php แล้วประกอบเข้าชุดกับรูปแบบที่ php ระบุไว้

แต่เมื่อต้องการให้ทำการตัดคำภาษาไทย ก็มักจะแสดงเป็นสี่เหลี่ยมๆ เป็นตัวสุดท้ายประจำ
ดังนั้นทางจูมล่า ได้เขียน Joomla-Framework ที่อยู่ในหมวด Utilities ไว้ให้คือ JString
ซึ่งจริงๆ จะทำงานได้กับ php หลายฟังก์ชันด้วย

รูปแบบการนำไปใช้ คือ ให้ทำการใส่

jimport( 'joomla.utilities.string' );

ไว้ในฟังก์ชันที่เราเขียนไว้สำหรับการตัดคำ เพื่อนำเข้า Joomla-Framework มาใช้งาน
จากนั้นนำ

JString

ไปใส่ไว้ด้านหน้าฟังก์ชันของ php เช่น

$txt = JString::substr($txt,0,$limit);


ซึ่งได้ผลเป็นอย่างดีครับ

 

รายละเอียดเพิ่มเติม http://docs.joomla.org/API15:JString

749 days ago
groups
lungkao joined the group JUG
779 days ago
myblog
lungkao added application
791 days ago
friendslocation
lungkao added Friend's Location application
794 days ago
friends
ziggaza and lungkao are now friends
807 days ago

Wall

plaraa
เงียบ ๆ
วันเสาร์ที่ 18 กรกฏาคม 2009 เวลา 08:44 น.
 

Joomla!® Thai Community

The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
Joomla.or.th is not affiliated with or endorsed by Open Source Matters or the Joomla!® Project
You are here Community plaraa