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

黄舟
黄舟Original
2017-11-02 10:49:191695browse

Example

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

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

Definition and usage

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

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)

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!

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