PHP hebrevc() 函数

PHP 教程 · 2019-01-29 13:57:26

实例

反向显示希伯来字符,并把新行(\n)转换为 <br>:

<?php
echo hebrevc("á çùåï äúùñâ\ná çùåï äúùñâ");
?>

定义和用法

hebrevc() 函数把希伯来文本从右至左的流转换为左至右的流。同时,把新行(\n)转换为 <br>。

提示:hebrevc() 和 hebrev() 可以把希伯来逻辑文本(Windows 编码)转换为希伯来可见文本。希伯来可见文本不需要特殊的从右至左字符支持,这使它对于在 Web 上显示希伯来文本很有用处。

语法


hebrevc(string,maxcharline)


参数 描述
string 必需。希伯来文本。
maxcharline 可选。规定每行的最大字符数。如果可能,hebrevc() 将避免把单词断开。

技术细节

返回值: 返回可见字符串。
PHP 版本: 4+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Once Upon an Algorithm

Once Upon an Algorithm

Martin Erwig / MIT Press / 2017-9-8 / GBP 22.95

How Hansel and Gretel, Sherlock Holmes, the movie Groundhog Day, Harry Potter, and other familiar stories illustrate the concepts of computing. Picture a computer scientist, staring at a screen and......一起来看看 《Once Upon an Algorithm》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具