cvs: pear /PHP_Compat/tests/function str_word_count.phpt

From: Date: Mon, 28 Feb 2005 11:46:53 +0000
Subject: cvs: pear /PHP_Compat/tests/function str_word_count.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-29925@lists.php.net to get a copy of this message
aidan Mon Feb 28 06:46:53 2005 EDT Modified files: /pear/PHP_Compat/tests/function str_word_count.phpt Log: Check for bug 3586 http://cvs.php.net/diff.php/pear/PHP_Compat/tests/function/str_word_count.phpt?r1=1.1&r2=1.2&ty=u Index: pear/PHP_Compat/tests/function/str_word_count.phpt diff -u pear/PHP_Compat/tests/function/str_word_count.phpt:1.1 pear/PHP_Compat/tests/function/str_word_count.phpt:1.2 --- pear/PHP_Compat/tests/function/str_word_count.phpt:1.1 Sat Jun 26 03:14:21 2004 +++ pear/PHP_Compat/tests/function/str_word_count.phpt Mon Feb 28 06:46:53 2005 @@ -11,6 +11,9 @@ var_dump(str_word_count($str)); print_r(str_word_count($str, 1)); print_r(str_word_count($str, 2)); + +$str = 'hello I am repeated repeated'; +print_r(str_word_count($str, 2)); ?> --EXPECT-- int(12) @@ -43,4 +46,12 @@ [66] => sir [71] => you [75] => am +) +Array +( + [0] => hello + [6] => I + [8] => am + [11] => repeated + [18] => repeated ) \ No newline at end of file

« previous php.pear.cvs (#29925) next »