[ create a new paste ] login | about

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

balajimca - PHP, pasted on Oct 5:
1
2
3
4
5
6
<?php
$beginning = 'foo';
$end = array('bar');
$result = array_merge((array)$beginning, (array)$end);
print_r($result);
?>


Output:
1
2
3
4
5
Array
(
    [0] => foo
    [1] => bar
)


Create a new paste based on this one


Comments: