Test Ar-PHP Functionality Online
Test PHP Function
Sub Class:
- Select one -
AutoSummarize
CharsetD
CompressStr
Date
Gender
Glyphs
Hiero
Identifier
KeySwap
Mktime
Normalise
Numbers
Query
Salat
Sort
Soundex
Standard
Stemmer
StrToTime
Transliteration
WordTag
Method:
- Select one -
setFeminine
setFormat
setOrder
getFeminine
getFormat
getOrder
int2str
money2str
str2int
subInt2str
writtenBlock
int2indic
number:
[iso]:
[lang]:
Result (
var_dump
output):
Ar-PHP Manual
method money2str
[line
345
]
string money2str( integer $number, [string $iso = 'SYP'], [string $lang = 'ar'])
Spell number in Arabic idiom as money
Tags:
return:
The Arabic idiom that spells inserted number as money
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
public
Parameters:
integer
$number
The number you want to spell in Arabic idiom as money
string
$iso
The three-letter Arabic country code defined in ISO 3166 standard
string
$lang
The two-letter language code in ISO 639-1 standard [ar|en]
Example
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Numbers'
)
;
$obj
->
setFeminine
(
1
)
;
$obj
->
setFormat
(
1
)
;
$integer
=
2147483647
;
$text
=
$obj
->
int2str
(
$integer
)
;
echo
"
<p align=\"right\"><b class=hilight>
$integer
</b><br />
$text
</p>
"
;
$obj
->
setFeminine
(
2
)
;
$obj
->
setFormat
(
2
)
;
$integer
=
2147483647
;
$text
=
$obj
->
int2str
(
$integer
)
;
echo
"
<p align=\"right\"><b class=hilight>
$integer
</b><br />
$text
</p>
"
;
Popular
utf8Glyphs
(1224)
ar2en
(973)
money2str
(550)
en2ar
(400)
isFemale
(291)
Recent
setMode
(1 days)
ar2en
(2 days)
a4MaxChars
(5 days)
utf8Glyphs
(5 days)
a4Lines
(5 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa