|
hebrev
Convert logical Hebrew text to visual text
(PHP 4, PHP 5)
Code Examples / Notes » hebrevsocket
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 Languageaddcslashes 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 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 |