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