Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
If a key from array1 exists in array2, and if the key only exists in array1:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:41 p.m.
FORMAT:
Text only
SIZE:
118 Bytes
Raw
Download
Tweet
HITS:
265
Go to comments
Report
<?php
$a1=array("a"=>"red","b"=>"green");
$a2=array("a"=>"orange","burgundy");
print_r(array_replace($a1,$a2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus