Class NumberThai
convert number such as -10, 0.034, 0.50, 1.34, 1000000, or more to text in Thai language.
Namespace: Rundiz\Number
License: MIT.
Author: Vee W.
Uses: to convert number to text, make a call to from this class to convertNumber() method. Example: $number_thai->convertNumber('109.99');
Link: author's home page.
Located at Number/NumberThai.php
License: MIT.
Author: Vee W.
Uses: to convert number to text, make a call to from this class to convertNumber() method. Example: $number_thai->convertNumber('109.99');
Link: author's home page.
Located at Number/NumberThai.php
public
string
|
|
public
string
|
#
convertBaht(
convert Thai Baht number to text. |
public
string
|
|
public
string
|
|
public
string
|
public
array
|
$number
|
#
array('ศูนย์', 'หนึ่ง', 'สอง', 'สาม', 'สี่','ห้า', 'หก', 'เจ็ด', 'แปด', 'เก้า')
|
public
array
|
$number_scale
|
#
array('', 'สิบ', 'ร้อย', 'พัน', 'หมื่น', 'แสน', 'ล้าน')
|
public
array
|
$arabic_number
|
#
array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9')
|
public
array
|
$thai_number
|
#
array('๐', '๑', '๒', '๓', '๔', '๕', '๖', '๗', '๘', '๙')
|