How to use hebrevc in PHP

In this article I will explain how the hebrevc() function can be used in PHP.
  • 1262

hebrevc() function in PHP

  • The hebrevc() function is used to convert Hebrew text from a right-to-left flow to a left-to-right flow.

  • The hebrevc() function also converts new lines (\n) into <br />.

  • Only ASCII characters between 224 and 251, and punctuation characters will be affected.

  • In  hebrev() function, Only ASCII characters between 224 and 251.

  • In  hebrev() function, punctuation characters will be affected

Syntax

hebrevc(string,maxcharline)

Parameter

  • string string is required parameter. it is hebrew input string.
  • maxcharline maxcharline is optional parameter. It indicates maximum number of characters each line

Example

The following example show to how the hebrevc() function can be used in PHP.

<html>

<body>

<h3 style="color: darkgray;">hebrevc() function example in PHP</h3>

    <?php

    echo hebrevc("á çùåï äúùñâ\ná çùåï äúùñâ");

    ?>  

</body>

</html>

 

Output

hebrevc-php.jpg
You may also want to read these related articles here
 
Ask Your Question 
 
Got a programming related question? You may want to post your question here
 

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.