php-src/ext/mbstring/tests/mb_split-compat-01.phpt

24 lines
432 B
Plaintext
Raw Normal View History

--TEST--
mb_split() compat test 1
--SKIPIF--
2002-11-15 14:49:57 +00:00
<?php
extension_loaded('mbstring') or die('skip');
2002-11-15 15:34:57 +00:00
function_exists('mb_split') or die("skip mb_split() is not available in this build");
2002-11-15 14:49:57 +00:00
?>
--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