mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
24 lines
432 B
PHP
24 lines
432 B
PHP
--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
|