Home > Backend Development > PHP Tutorial > 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()

黄舟
Release: 2023-03-16 22:00:02
Original
1516 people have browsed it

Example

Reverse display of Hebrew characters:

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

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)
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template