PHP hebrev() Function

Example

Reverse display of Hebrew characters:

<?php
echo hebrev("? ???? ?????");
?>

Definition and Usage

The hebrev() function converts a right-to-left Hebrew text stream 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 very useful for displaying Hebrew text on the Web.

Syntax

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

Technical Details

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