mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
22 lines
330 B
PHP
22 lines
330 B
PHP
--TEST--
|
|
array_chunk()
|
|
--FILE--
|
|
<?php
|
|
$array = array ();
|
|
var_dump ($array);
|
|
for ($i = 0; $i < (sizeof($array) + 1); $i++) {
|
|
echo "[$i]\n";
|
|
var_dump (@array_chunk ($array, $i));
|
|
var_dump (@array_chunk ($array, $i, TRUE));
|
|
var_dump (@array_chunk ($array, $i, FALSE));
|
|
echo "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
array(0) {
|
|
}
|
|
[0]
|
|
NULL
|
|
NULL
|
|
NULL
|