===== 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 "
\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));