[ create a new paste ] login | about

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

PHP, pasted on Mar 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

$correct = array();

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

print_r($wrong);
print_r($correct);

?>


Output:
Array
(
    [9] => wrong
    [8] => wrong
    [7] => wrong
    [6] => wrong
    [5] => wrong
    [4] => wrong
    [3] => wrong
    [2] => wrong
    [1] => wrong
)
Array
(
    [9] => correct
    [8] => correct
    [7] => correct
    [6] => correct
    [5] => correct
    [4] => correct
    [3] => correct
    [2] => correct
    [1] => correct
)


Create a new paste based on this one


Comments: