php-src/ext/ereg/tests/009.phpt
2007-07-15 20:03:16 +00:00

20 lines
300 B
PHP

--TEST--
Test split()
--SKIPIF--
<?php if (unicode_semantics()) die('skip unicode.semantics=on'); ?>
--FILE--
<?php
$a=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