English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP String Character String Functions Manual
hebrevc() function is used to convert logical order Hebrew (logical-Hebrew) to visual order Hebrew (visual-Hebrew), and convert line breaks
string hebrevc ( string $hebrew_text[, int $max_chars_per_line = 0 ] )
It is used to convert logical Hebrew text to visible text by converting line breaks, and at the same time, convert new lines (\n) to <br>.
Note: This function is similar to hebrev(), the only difference is that this function will also convert the newline character (\n) to "<br>\n".
It returns the visible string.
Serial Number | Parameters and Description |
---|---|
1 | hebrew_text It contains information about the Hebrew string input |
2 | max_chars_per_line It contains information about the maximum number of characters per line returned |
Try the following example, reverse the display of Hebrew characters, and convert new lines (\n) to <br>:
<?php echo hebrevc("á çùåï äúùñâ\ná çùåï äúùñâ"); ?>Test and see‹/›
Output Result-
âñùúä ïåùç á âñùúä ïåùç á