Easy Tutorial
❮ Php Ref Array Func Misc Highlight File ❯

PHP hebrevc() Function

PHP String Reference Manual

Example

Reverse display of Hebrew characters and convert new lines (\n) to <br>:


Definition and Usage

The hebrevc() function converts Hebrew text from right-to-left flow to left-to-right flow. It also converts new lines (\n) to <br>.

Note: hebrevc() and hebrev() can convert Hebrew logical text (Windows encoding) to Hebrew visual text. Hebrew visual text does not require special right-to-left character support, making it useful for displaying Hebrew text on the web.


Syntax

Parameter Description
string Required. The Hebrew text.
maxcharline Optional. Specifies the maximum number of characters per line. hebrevc() will attempt to avoid breaking words if possible.

Technical Details

Return Value: Returns the visual string.
PHP Version: 4+
--- ---
❮ Php Ref Array Func Misc Highlight File ❯