I have two or more array with the same key, I want to merge these arrays but keep the value. Exp:
$arr1 = array("message" => "message 1");
$arr2 = array("message" => "message 2");
echo "<pre>";
print_r($arr3 = somefunction($arr2,$arr1));
echo "</pre>";
I want result like this:
Array
(
[message] => Array
(
[0] => message 1
[1] => message 2
)
)