If you want to use hebrevc with english,
just use strrev.
hebrevc
(PHP 4, PHP 5)
hebrevc — 줄바꿈을 포함하여 논리 히브리 텍스트를 표시 텍스트로 변환
설명
string hebrevc
( string $hebrew_text
[, int $max_chars_per_line
] )
줄바꿈(\n)을 "<br>\n"로 바꾸는 점을 제외하면, hebrev()와 동일합니다.
이 함수는 단어 중간에서 줄바꿈을 하지 않기 위해 노력합니다.
인수
- hebrew_text
-
히브리 입력 문자열.
- max_chars_per_line
-
이 선택적인 인수는 한 줄에 들어가는 최대 문자수를 지정합니다.
반환값
표시 문자열을 반환합니다.
hebrevc
yfurman at yahoo dot com
11-Dec-2001 09:41
11-Dec-2001 09:41
Beware of English use!
I was working on a little project, and used hebrevc to reverse Hebrew in a loop. The hebrevc function got a variable as an argument. Sometimes the variable was pure English and sometimes it was hebrew.
Suddenly I found out that the English too was cut with BR tags, which made it look funny - the last line was the first.
If you're going to use that function in mixed text, don't forget to check the language before using the function.
Yael
