[ create a new paste ] login | about

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

PHP, pasted on Aug 17:
1
2
3
 <?php
$array = array('Hello', 'World', 'text');
    print_r(array_slice($array,0, count($array)-1, true));


Output:
1
2
3
4
5
 Array
(
    [0] => Hello
    [1] => World
)


Create a new paste based on this one


Comments: