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 -
getGlyphs
preConvert
a4MaxChars
a4Lines
utf8Glyphs
decodeEntities
decodeEntities2
str:
[max_chars]:
[hindo]:
Result (
var_dump
output):
Ar-PHP Manual
method utf8Glyphs
[line
385
]
string utf8Glyphs( string $str, [integer $max_chars = 50], [boolean $hindo = true])
Convert Arabic Windows-1256 charset string into glyph joining in UTF-8 hexadecimals stream (take care of whole the document including English sections as well as numbers and arcs etc...)
Tags:
return:
Arabic glyph joining in UTF-8 hexadecimals stream (take care of whole document including English sections as well as numbers and arcs etc...)
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
public
Parameters:
string
$str
Arabic string in Windows-1256 charset
integer
$max_chars
Max number of chars you can fit in one line
boolean
$hindo
If true use Hindo digits else use Arabic digits
Example
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Glyphs'
)
;
$text
=
$obj
->
utf8Glyphs
(
$text
)
;
imagettftext
(
$im
,
20
,
0
,
200
,
100
,
$black
,
$font
,
$text
)
;
Popular
utf8Glyphs
(1224)
ar2en
(973)
money2str
(550)
en2ar
(400)
isFemale
(291)
Recent
setMode
(23 hours)
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