Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Using three arrays - the last array ($a3) will overwrite the previous ones ($a1 and $a2):
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:42 p.m.
FORMAT:
Text only
SIZE:
136 Bytes
Raw
Download
Tweet
HITS:
327
Go to comments
Report
<?php
$a1=array("red","green");
$a2=array("blue","yellow");
$a3=array("orange","burgundy");
print_r(array_replace($a1,$a2,$a3));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus