hebrev – PHP String Functions

Syntax :

hebrev ( string, charsperline );

Description :

hebrev() function will convert Hebrew text from a right-to-left flow to a left-to-right flow. Basically it converts logical Hebrew text to visual text. It tries to avoid newline character.

Parameter :

  • string – This is a Required parameter and it is a Hebrew input string. This is a string on which function will be performed.
  • charsperline – This is a Optional parameter. it Specifies maximum characters for each line that should be returned. Default value is 0.

Output :

This will return a visual text converted from Hebrew text.

Related articles : hebrevc().

hebrev() – PHP Functions Example 1 :
// below statement english is "This is a example of hebrev() function."
$strExample = "זוהי דוגמה לפונקציה hebrev ()."; 
echo hebrev($strExample);

In above example ,We have a string ‘זוהי דוגמה לפונקציה hebrev ().’. Now this function will converts it to Hebrew visual string to display properly on web. See below is the output of above code.

.() זוהי דוגמה לפונקציה hebrev

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *