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 *** 22 23Deprecated: Function hebrevc() is deprecated in %s on line %d 24string(239) ".The hebrevc function converts logical Hebrew text to visual text<br /> 25) This function is similar to hebrev() with the difference that it converts newlines<br /> 26<to '<br (<br /> 27.'<br /> 28.The function tries to avoid breaking words<br /> 29" 30 31Deprecated: Function hebrevc() is deprecated in %s on line %d 32string(317) "to visual text<br /> 33Hebrew text<br /> 34logical<br /> 35converts<br /> 36function<br /> 37.The hebrevc<br /> 38newlines<br /> 39it converts<br /> 40difference that<br /> 41with the<br /> 42to hebrev()<br /> 43is similar<br /> 44) This function<br /> 45<to '<br (<br /> 46.'<br /> 47breaking words<br /> 48tries to avoid<br /> 49.The function<br /> 50" 51===DONE=== 52