Home > Backend Development > PHP Tutorial > PHP reversely displays Hebrew characters and converts new lines (\n) into
function hebrevc()

PHP reversely displays Hebrew characters and converts new lines (\n) into
function hebrevc()

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

Example

Reverse display of Hebrew characters and convert new lines (\n) to
:

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

Definition and usage

hebrevc () Function Converts Hebrew text from right-to-left flow to left-to-right flow. Also, convert new lines (\n) to
.

Tip: hebrevc() and hebrev() 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

hebrevc(string,maxcharline)
Copy after login

Parameters                       Description

string                                                                                                                                                                                            Hebrew text. ​

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

Technical details

Return value: Return visible String.

PHP Version: 4+

The above is the detailed content of PHP reversely displays Hebrew characters and converts new lines (\n) into
function hebrevc(). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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