[ create a new paste ] login | about

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

PHP, pasted on Aug 1:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

$arr = "post10
post9
post8
post7
post6
post5
post4
post3
post2
post1";

$arr = explode("\n",$arr);

print_r(array_reverse($arr));

?>


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
Array
(
    [0] => post1
    [1] => post2
    [2] => post3
    [3] => post4
    [4] => post5
    [5] => post6
    [6] => post7
    [7] => post8
    [8] => post9
    [9] => post10
)


Create a new paste based on this one


Comments: