Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP hebrevc() Function

PHP hebrevc() Function

PHP String Reference Manual PHP String Reference Manual

Example

Display Hebrew characters in reverse, and convert newlines (\n) to
:

Run Example »


Definition and Usage

The hebrevc() function converts Hebrew text from a right-to-left stream to a left-to-right stream. At the same time, it converts newlines (\n) to
.

**Tip:** 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, which makes it useful for displaying Hebrew text on the web.


Syntax

hebrevc(

string,maxcharline

)

Parameters 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 visual string.
PHP Version: 4+

PHP String Reference Manual PHP String Reference Manual