[ create a new paste ] login | about

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

PHP, pasted on Jun 4:
1
2
3
4
5
<?php
$array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20);
array_splice($array, 10);
print_r($array);
?>


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


Create a new paste based on this one


Comments: