1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

Trim trailing whitespace in *.phpt

This commit is contained in:
Peter Kokot
2018-10-14 15:37:22 +02:00
parent afd534f163
commit 7af945e271
6463 changed files with 17668 additions and 17677 deletions
@@ -1,5 +1,5 @@
--TEST--
Test array_chunk() function : basic functionality - 'preserve_keys' as true/false
Test array_chunk() function : basic functionality - 'preserve_keys' as true/false
--FILE--
<?php
/* Prototype : array array_chunk(array $array, int $size [, bool $preserve_keys])
@@ -20,18 +20,18 @@ $input_arrays = array(
// associative arrays - key as string
array('key1' => 1, "key2" => 2, "key3" => 3),
// associative arrays - key as numeric
array(1 => 'one', 2 => "two", 3 => "three"),
// array containing elements with/without keys
array(1 => 'one','two', 3 => 'three', 4, "five" => 5)
);
);
$count = 1;
// loop through each element of the array for input
foreach ($input_arrays as $input_array){
echo "\n-- Iteration $count --\n";
foreach ($input_arrays as $input_array){
echo "\n-- Iteration $count --\n";
var_dump( array_chunk($input_array, $size, true) );
var_dump( array_chunk($input_array, $size, false) );
$count++;