PHP hebrev() Function

The hebrev() function converts Hebrew text from a right-to-left flow to a left-to-right flow.

string hebrev ( string $hebrew_text [, int $max_chars_per_line = 0 ] )

Converts logical Hebrew text to visual text.

The function tries to avoid breaking words.

Example -

ParameterDescription
hebrew_textA Hebrew input string.
max_chars_per_lineThis optional parameter indicates maximum number of characters per line that will be returned.

Returns the visual string.