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
str:
Result (
var_dump
output):
Ar-PHP Manual
method str2int
[line
383
]
integer str2int( string $str)
Convert Arabic idiom number string into Integer
Tags:
return:
The number you spell it in the Arabic idiom
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
public
Parameters:
string
$str
The Arabic idiom that spells input number
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
(1182)
ar2en
(963)
money2str
(550)
en2ar
(394)
isFemale
(291)
Recent
a4Lines
(5 days)
utf8Glyphs
(5 days)
ar2en
(5 days)
money2str
(26 days)
str2graph
(26 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa