Home >>PHP String Functions >PHP hebrevc() Function
PHP hebrevc() function is used to reverse any given Hebrew Text. It also converts the new line (\n) into break <br>.
Hebrew text is read from right-to-left, that means by using this hebrevc() function in PHP we make the text read from left-to-right.
We can also sat that using this hebrevc() function we convert the given logical Herrew text to the resultant visual test.
The function move the full-stop from the left end of the sentence(in Hebrew) to the right end of the sentence.
We can also say that the hebrevc() function changes the flow of the Hebrew text from a right-to-left flow to a left-to-right flow.
Syntax:
hebrevc($string,$maxcharline);
Parameter | Description |
---|---|
string | This parameter is required. In this we pass the given input Hebrew text. |
maxcharline | This parameter is Optional.This parameter Specifies the maximum number of characters for each line. |
Here are some examples of hebrevc() function in PHP:
<html> <body> <?php echo hebrevc("ل çùهï نْùٌâ\nل çùهï نْùٌâ"); ?> </body> </html>
<html> <body> <?php echo hebrevc("אָלֶף־בֵּית עִבְרִי\nאָלֶף־בֵּית עִבְרִי"); ?> </body> </html>