English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

PHP Basic Tutorial

PHP Advanced Tutorial

PHP & MySQL

PHP Reference Manual

PHP hebrevc() Function Usage and Example

PHP String Character String Functions Manual

hebrevc() function is used to convert logical order Hebrew (logical-Hebrew) to visual order Hebrew (visual-Hebrew), and convert line breaks

Syntax

string hebrevc ( string $hebrew_text[, int $max_chars_per_line = 0 ] )

Definition and Usage

It is used to convert logical Hebrew text to visible text by converting line breaks, and at the same time, convert new lines (\n) to <br>.

Note: This function is similar to hebrev(), the only difference is that this function will also convert the newline character (\n) to "<br>\n".

Return Value

It returns the visible string.

Parameter

Serial NumberParameters and Description
1

hebrew_text

It contains information about the Hebrew string input

2

max_chars_per_line

It contains information about the maximum number of characters per line returned

Online Example

Try the following example, reverse the display of Hebrew characters, and convert new lines (\n) to <br>:

<?php
   echo hebrevc("á çùåï äúùñâ\ná çùåï äúùñâ");
?>
Test and see‹/›

Output Result-

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

PHP String Character String Functions Manual