String Functions
Advertisements

PHP hebrev() Function

Topic: PHP String ReferencePrev|Next

Description

The hebrev() function reverses the flow of Hebrew text from its native right-to-left to a left-to-right.

The following table summarizes the technical details of this function.

Return Value: Returns the visual string.
Version: PHP 4+

Syntax

The basic syntax of the hebrev() function is given with:

hebrev(string, max_chars_per_line);

The following example shows the hebrev() function in action.

<?php
// Reversing the flow of Hebrew text
echo hebrev("שלום עולם");
?>

Parameters

The hebrev() function accepts the following parameters.

Parameter Description
string Required. Specifies the Hebrew text.
max_chars_per_line Optional. Specifies the maximum number of characters per line.
Advertisements
Bootstrap UI Design Templates Property Marvels - A Leading Real Estate Portal for Premium Properties