PHP hebrev() Function
Example
Display Hebrew characters in reverse:
Run Example »
Definition and Usage
The hebrev() function converts Hebrew text from a right-to-left stream to a left-to-right stream.
**Tip:** hebrev() and hebrevc() can convert Hebrew logical text (Windows encoding) to Hebrew visual text. Hebrew visual text does not require special right-to-left character support, which makes it 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 visual string. |
|---|---|
| PHP Version: | 4+ |
PHP String Reference Manual