hebrev() function in PHP


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

Syntax

hebrev(str, maxcharline)

Parameters

  • str − Hebrew input string

  • maxcharline − The maximum number of characters per line that will be returned.

Return

The hebrev() function returns the visual string.

Example

The following is an example −

Live Demo

<?php
   echo hebrev("á çùåï äúùñâ");
?>

Output

âñùúä ïåùç á

Updated on: 30-Jul-2019

88 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements