Annotation of embedaddon/php/ext/mbstring/tests/mb_split-compat-01.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: mb_split() compat test 1
3: --SKIPIF--
4: <?php
5: extension_loaded('mbstring') or die('skip');
6: function_exists('mb_split') or die("skip mb_split() is not available in this build");
7: ?>
8: --FILE--
9: <?php
10: /* (counterpart: ext/standard/tests/reg/009.phpt) */
11: $a=mb_split("[[:space:]]","this is a
12: test");
13: echo count($a) . "\n";
14: for ($i = 0; $i < count($a); $i++) {
15: echo $a[$i] . "\n";
16: }
17: ?>
18: --EXPECT--
19: 4
20: this
21: is
22: a
23: test
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>