PHP hebrev() Function

Definition

The hebrev() function converts Hebrew text from a right-to-left flow to a left-to-right flow.

Syntax

PHP hebrev() Function has the following syntax.

hebrev(string,maxcharline)

Parameter

Parameter Is Required Description
string Required. A Hebrew text
maxcharline Optional. Maximum characters for each line. hebrev() will avoid breaking words if possible

Return

PHP hebrev() function returns the visual string

Example

Reverse the display of Hebrew characters:



<?php
echo hebrev("?");
?>




















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions