Computer >> Computer tutorials >  >> Programming >> PHP

hebrevc() function in PHP


The hebrevc() function is used to convert logical Hebrew text to visual text with newline conversion. It also converts new lines (\n) into <br>.

Syntax

hebrevc(str, maxcharline)

Parameters

  • str − Hebrew input string

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

Return

The hebrevc() function returns the visual string.

The following is an example −

Example

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

The following is the output −

Output

âñùúä ïåùç á
âñùúä ïåùç á