PHP hebrevc() Function
Example
Reverse display of Hebrew characters and convert new lines (\n) to <br>:
<?php echo hebrevc("? ???? ?????\n? ???? ?????"); ?>
Definition and Usage
The hebrevc() function converts a Hebrew text stream from right to left to left to right. At the same time, it converts new lines (\n) to <br>.
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 very useful for displaying Hebrew text on the Web.
Syntax
hebrevc(string,maxcharline)
Parameter | Description |
---|---|
string | Required. Hebrew text. |
maxcharline | Optional. Specify the maximum number of characters per line. If possible, hebrevc() will avoid breaking words. |
Technical Details
Return value: | Return visible string. |
PHP Version: | 4+ |