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