String Functions

PHP hebrev() Function

Topic: PHP String ReferencePrev|Next


The hebrev() function reverses the flow of Hebrew text from its native right-to-left to a left-to-right.

The following table summarizes the technical details of this function.

Return Value: Returns the visual string.
Version: PHP 4+


The basic syntax of the hebrev() function is given with:

hebrev(string, max_chars_per_line);

The following example shows the hebrev() function in action.

// Reversing the flow of Hebrew text
echo hebrev("שלום עולם");


The hebrev() function accepts the following parameters.

Parameter Description
string Required. Specifies the Hebrew text.
max_chars_per_line Optional. Specifies the maximum number of characters per line.
Bootstrap UI Design Templates