Home > Article > Backend Development > PHP converts a right-to-left stream of Hebrew characters into a left-to-right function hebrev()
Example
Reverse display of Hebrew characters:
<?php echo hebrev("á çùåï äúùñâ"); ?>
Definition and usage
hebrev() FunctionConvert Hebrew text from A right-to-left stream is converted to a left-to-right stream.
Tip: hebrev() and hebrevc() can convert Hebrew logical text (Windows encoding) to Hebrew visible text. Hebrew visible text does not require special right-to-left character support, making it useful for displaying Hebrew text on the web.
Syntax
hebrev(string,maxcharline)
Parameters Description
string required. Hebrew text.
maxcharline Optional. Specifies the maximum number of characters per line. hebrev() will avoid breaking words if possible.
Technical details
Return value: use using use using with using using using it with it – are returned. PHP Version: 4+
hebrev() function converts Hebrew text from right-to-left flow to left-to-right flow. Only ASCII characters between 224 and 251, as well as punctuation, are affected.
The above is the detailed content of PHP converts a right-to-left stream of Hebrew characters into a left-to-right function hebrev(). For more information, please follow other related articles on the PHP Chinese website!