[ create a new paste ] login | about

Link: http://codepad.org/H1U3wXZD    [ raw code | output | fork ]

PHP, pasted on Sep 16:
1
2
3
4
5
6
7
8
9
10
11
12
<?php

$test = array();

$i = 10;
while (--$i) {
    $test[] = "test";
}

print_r($test);

?>


Output:
1
2
3
4
5
6
7
8
9
10
11
12
Array
(
    [0] => test
    [1] => test
    [2] => test
    [3] => test
    [4] => test
    [5] => test
    [6] => test
    [7] => test
    [8] => test
)


Create a new paste based on this one


Comments: