Table of Contents

Syntax

string hebrevc(string $hebrewtext [, int $charsperline])

(PHP 4, PHP 5)

$hebrewtext Source string containing Hebrew characters.
$charsperline Maximum number of characters per line.
RETURNS The source string ($hebrewtext) with Hebrew characters converted to visual characters and newlines converted to an HTML line break.

What it Does

Takes a source string containing Hebrew text ($hebrewtext), and converts Hebrew characters to a visual style. Unlike the hebrev function, this function will convert newlines to the HTML equivelent of ā€<br>\nā€.

In the process of converting the text, it will attempt to preserve all word breaks in the original text (when the $charsperline option is used).

Example

// convert text
echo('Hebrew text: ' . hebrevc($source));
 
hebrevc.txt · Last modified: Apr 18, 2008 - 2:00pm (external edit)
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki