Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : String Functions : hebrev

hebrev

Convert logical Hebrew text to visual text (PHP 4, PHP 5)
string hebrev ( string hebrew_text [, int max_chars_per_line] )


Code Examples / Notes » hebrev

socket

The hebrev function changes the string order to RTL.
Use fribidi_log2vis insted if you need LTR text direction
$text = fribidi_log2vis($text,FRIBIDI_LTR, FRIBIDI_CHARSET_CP1255)


nis

In response to the user talking of "characters in the range of ASCII 224-251". These codes are not defined in ASCII. You are probably talking about one of the extensions to ASCII, probably ISO-8859-8

zak

hebrev() changes the flow of any Hebrew characters in a string from right-to-left to left-to-right.
It only affects characters within the range of ASCII 224-251 (except for punctuation).


tinko

From my experience in using hebrev text in HTML, I prefer using

<html dir="rtl" lang="he">
over mentioned PHP functions. It works perfectly with IE 6 ... needs some tweaking in Mozilla though.
I found this site http://tlt.its.psu.edu/suggestions/international/web/tips/align.html useful.


php2eran

As of PHP 4.05 there's a problem in the handling of the characters '{}[]<>' compared to MSIE. Note that normal parenthesis '()' are OK.
For further information see http://www.php.net/bugs.php?id=11244 .


Change Language


Follow Navioo On Twitter
addcslashes
addslashes
bin2hex
chop
chr
chunk_split
convert_cyr_string
convert_uudecode
convert_uuencode
count_chars
crc32
crypt
echo
explode
fprintf
get_html_translation_table
hebrev
hebrevc
html_entity_decode
htmlentities
htmlspecialchars_decode
htmlspecialchars
implode
join
levenshtein
localeconv
ltrim
md5_file
md5
metaphone
money_format
nl_langinfo
nl2br
number_format
ord
parse_str
print
printf
quoted_printable_decode
quotemeta
rtrim
setlocale
sha1_file
sha1
similar_text
soundex
sprintf
sscanf
str_getcsv
str_ireplace
str_pad
str_repeat
str_replace
str_rot13
str_shuffle
str_split
str_word_count
strcasecmp
strchr
strcmp
strcoll
strcspn
strip_tags
stripcslashes
stripos
stripslashes
stristr
strlen
strnatcasecmp
strnatcmp
strncasecmp
strncmp
strpbrk
strpos
strrchr
strrev
strripos
strrpos
strspn
strstr
strtok
strtolower
strtoupper
strtr
substr_compare
substr_count
substr_replace
substr
trim
ucfirst
ucwords
vfprintf
vprintf
vsprintf
wordwrap
eXTReMe Tracker