Home  >  Article  >  Backend Development  >  PHP converts a right-to-left stream of Hebrew characters into a left-to-right function hebrev()

PHP converts a right-to-left stream of Hebrew characters into a left-to-right function hebrev()

黄舟
黄舟Original
2017-11-02 10:43:281436browse

Example

Reverse display of Hebrew characters:

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

Definition and usage

hebrev() FunctionConvert Hebrew text from A right-to-left stream is converted to a left-to-right stream.

Tip: hebrev() and hebrevc() can convert Hebrew logical text (Windows encoding) to Hebrew visible text. Hebrew visible text does not require special right-to-left character support, making it useful for displaying Hebrew text on the web.

Syntax

hebrev(string,maxcharline)

Parameters             Description

string               required. Hebrew text.

maxcharline Optional. Specifies the maximum number of characters per line. hebrev() will avoid breaking words if possible. ​

Technical details

Return value:                                                                                                                use using use using with using using using it with it –               are returned. PHP Version: 4+

hebrev() function converts Hebrew text from right-to-left flow to left-to-right flow. Only ASCII characters between 224 and 251, as well as punctuation, are affected.

The above is the detailed content of PHP converts a right-to-left stream of Hebrew characters into a left-to-right function hebrev(). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn