hebrevc() - php 字符串函数
hebrevc()
(PHP 4, PHP 5, PHP 7)
将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew),并且转换换行符
说明
hebrevc(string $hebrew_text[,int $max_chars_per_line= 0] ): string本函数与hebrev()一样,唯一的区别是本函数会额外将换行符(n)转换为"
n"。
函数将会尝试避免破坏单词。
参数
$hebrew_text逻辑顺序希伯来文字符串。
$max_chars_per_line可选参数,表示每行可返回的最多字符数。
返回值
返回视觉顺序字符串。
参见
- hebrev() 将逻辑顺序希伯来文(logical-Hebrew)转换为视觉顺序希伯来文(visual-Hebrew)
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
If you want to use hebrevc with english, just use strrev.
内容声明:本文中引用的各种信息及资料(包括但不限于文字、数据、图表及超链接等)均来源于该信息及资料的相关主体(包括但不限于公司、媒体、协会等机构)的官方网站或公开发表的信息。部分内容参考包括:(百度百科,百度知道,头条百科,中国民法典,刑法,牛津词典,新华词典,汉语词典,国家院校,科普平台)等数据,内容仅供参考使用,不准确地方联系删除处理!本站为非盈利性质站点,本着为中国教育事业出一份力,发布内容不收取任何费用也不接任何广告!)