Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Using numeric keys - If a key exists in array2 and not in array1:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:43 p.m.
FORMAT:
Text only
SIZE:
125 Bytes
Raw
Download
Tweet
HITS:
225
Go to comments
Report
<?php
$a1=array("red","green","blue","yellow");
$a2=array(0=>"orange",3=>"burgundy");
print_r(array_replace($a1,$a2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus