PHP hebrevc()Functions
Examples
Displays Hebrew characters in reverse and converts newlines (\n) to <br>:
<?php
echo hebrevc("á çùåï äúùñâ\ná çùåï äúùñâ");
?>
echo hebrevc("á çùåï äúùñâ\ná çùåï äúùñâ");
?>
Run Example »
Definition and Usage
The hebrevc() function converts Hebrew text from a right-to-left flow to a left-to-right flow. It also converts newlines (\n) to <br>.
Tip:hebrevc() andhebrev()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 useful for displaying Hebrew text on the Web.
Syntax
hebrevc(string,maxcharline)
| Parameter | Description |
|---|---|
| string | Required. The Hebrew text. |
| maxcharline | Optional. Specifies the maximum number of characters per line. If possible, hebrevc() will avoid breaking words. |
Technical Details
| Return Value: | Returns the visible string. |
|---|---|
| PHP Version: | 4+ |
PHP String Reference Manual Other Extensions