The hebrev() function is used to convert logical Hebrew text to visual text. The function converts Hebrew text from a right-to-left flow to a left-to-right flow.
Syntax
hebrev(str, maxcharline)
Parameters
str − Hebrew input string
maxcharline − The maximum number of characters per line that will be returned.
Return
The hebrev() function returns the visual string.
Example
The following is an example −
<?php echo hebrev("á çùåï äúùñâ"); ?>
Output
âñùúä ïåùç á