How to use hebrev in PHP

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

hebrev() function in PHP

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

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

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

Syntax

hebrev(string,maxcharline)

Parameter

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

Example

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

<html>

<body>

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

    <?php

    echo "convert logical Hebrew text to visual text : ".hebrev("á çùåï äúùñâ");

    ?> 

</body>

</html>

 

Output

hebrev-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

© 2019 DotNetHeaven. All rights reserved.