PHP hebrev()Functions

PHP String 参考手册PHP String Reference Manual

Examples

Reverse display of Hebrew characters:

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

Run example »

Definition and Usage

The hebrev() function converts Hebrew text from a right-to-left flow to a left-to-right flow.

Tip:hebrev() andhebrevc()can convert Hebrew logical text (Windows encoding) into Hebrew visible text. Hebrew visible text does not require special right-to-left character support, which makes it very useful for displaying Hebrew text on the Web.


Syntax

hebrev(string,maxcharline)

Parameters Description
string Required. The Hebrew text.
maxcharline Optional. Specifies the maximum number of characters per line. If possible, hebrev() will avoid breaking words.

Technical Details

Return value: Returns the visible string.
PHP Version: 4+


PHP String 参考手册PHP String Reference Manual Other Extensions