Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Merge two arrays into one array:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:28 p.m.
FORMAT:
Text only
SIZE:
127 Bytes
Raw
Download
Tweet
HITS:
253
Go to comments
Report
<?php
$a1=array("a"=>"red","b"=>"green");
$a2=array("c"=>"blue","b"=>"yellow");
print_r(array_merge_recursive($a1,$a2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus