Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Replace the values of the first array ($a1) with the values from the second array ($a2):
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:40 p.m.
FORMAT:
Text only
SIZE:
99 Bytes
Raw
Download
Tweet
HITS:
317
Go to comments
Report
<?php
$a1=array("red","green");
$a2=array("blue","yellow");
print_r(array_replace($a1,$a2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus