mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
18 lines
213 B
Plaintext
18 lines
213 B
Plaintext
|
--TEST--
|
||
|
Test split()
|
||
|
--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
|