mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
20 lines
230 B
Plaintext
20 lines
230 B
Plaintext
|
--TEST--
|
||
|
Test split()
|
||
|
--POST--
|
||
|
--GET--
|
||
|
--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
|