1--TEST--
2Test hebrevc() function : basic functionality
3--FILE--
4<?php
5
6/* Prototype  : string hebrevc  ( string $hebrew_text  [, int $max_chars_per_line  ] )
7 * Description: Convert logical Hebrew text to visual text
8 * Source code: ext/standard/string.c
9*/
10
11echo "*** Testing hebrevc() : basic functionality ***\n";
12
13$hebrew_text = "The hebrevc function converts logical Hebrew text to visual text.\nThis function is similar to hebrev() with the difference that it converts newlines (\n) to '<br>\n'.\nThe function tries to avoid breaking words.\n";
14
15var_dump(hebrevc($hebrew_text));
16var_dump(hebrevc($hebrew_text, 15));
17
18?>
19===DONE===
20--EXPECTF--
21*** Testing hebrevc() : basic functionality ***
22string(239) ".The hebrevc function converts logical Hebrew text to visual text<br />
23) This function is similar to hebrev() with the difference that it converts newlines<br />
24<to '<br (<br />
25.'<br />
26.The function tries to avoid breaking words<br />
27"
28string(317) "to visual text<br />
29Hebrew text<br />
30logical<br />
31converts<br />
32function<br />
33.The hebrevc<br />
34newlines<br />
35it converts<br />
36difference that<br />
37with the<br />
38to hebrev()<br />
39is similar<br />
40) This function<br />
41<to '<br (<br />
42.'<br />
43breaking words<br />
44tries to avoid<br />
45.The function<br />
46"
47===DONE===
48