1--TEST--
2Test hebrev() function : basic functionality
3--FILE--
4<?php
5
6/* Prototype  : string hebrev  ( 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 hebrev() : basic functionality ***\n";
12
13$hebrew_text = "The hebrev function converts logical Hebrew text to visual text.\nThe function tries to avoid breaking words.\n";
14
15var_dump(hebrev($hebrew_text));
16var_dump(hebrev($hebrew_text, 15));
17
18?>
19===DONE===
20--EXPECTF--
21*** Testing hebrev() : basic functionality ***
22string(109) ".The hebrev function converts logical Hebrew text to visual text
23.The function tries to avoid breaking words
24"
25string(109) "to visual text
26Hebrew text
27logical
28converts
29hebrev function
30.The
31breaking words
32tries to avoid
33.The function
34"
35===DONE===
36