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 -
setMode
getMode
date
en2ar
arabicMonths
hjConvert
jdToIslamic
islamicToJd
gregToJd
dateCorrection
str:
Result (
var_dump
output):
Ar-PHP Manual
method en2ar
[line
345
]
string en2ar( string $str)
Translate English date/time terms into Arabic langauge
Tags:
return:
Date/time string using Arabic terms
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
protected
Parameters:
string
$str
Date/time string using English terms
Example
date_default_timezone_set
(
'UTC'
)
;
$time
= time
(
)
;
echo date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Date'
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
$obj
->
setMode
(
2
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
$obj
->
setMode
(
3
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
$obj
->
setMode
(
4
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
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