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 -
en2ar
ar2en
enNum
arNum
string:
Result (
var_dump
output):
Ar-PHP Manual
static method arNum
[line
349
]
static String arNum( string $string)
Render numbers in given string using HTML entities that will show them as Indian digits (i.e. ١, ٢, ٣, etc.) whatever browser language settings are (if browser supports UTF-8 character set).
Tags:
return:
Original string after replace digits by HTML entities that will show given number using Arabic digits
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
public
Parameters:
string
$string
String includes some digits here or there
Example
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Transliteration'
)
;
$ar_word_1
=
$obj
->
en2ar
(
$en_word_1
)
;
$en_word_2
=
$obj
->
ar2en
(
$ar_word_2
)
;
Popular
utf8Glyphs
(1213)
ar2en
(971)
money2str
(550)
en2ar
(400)
isFemale
(291)
Recent
ar2en
(6 days)
isFemale
(23 days)
utf8Glyphs
(23 days)
setMode
(30 days)
(44 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa