The hebrevc() function converts Hebrew text from a right-to-left flow to a left-to-right flow. It also converts new lines (\n) into <br>.
PHP hebrevc() Function has the following syntax.
hebrevc(string,maxcharline)
Parameter | Is Required | Description |
---|---|---|
string | Required. | A Hebrew text |
maxcharline | Optional. | Maximum characters for each line. hebrev() will avoid breaking words if possible |
PHP hebrevc() Function returns the visual string
Reverse the display of Hebrew characters, and convert new lines(\n) into <br>:
<?php
echo hebrevc("????");
?>