[ create a new paste ] login | about

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

PHP, pasted on Feb 12:
1
2
3
4
5
6
7
<?php
$array1 = array('1' => 'one', '2' => 'two');
$array2 = array('3' => 'three', '4' => 'four');
$result = $array1 + $array2;

echo $result['1'];
?>


Output:
1
one


Create a new paste based on this one


Comments: