Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Flip all keys with their associated values in an array:
SUBMITTED BY:
henry1874w
DATE:
June 23, 2017, 9:27 p.m.
FORMAT:
Text only
SIZE:
117 Bytes
Raw
Download
Tweet
HITS:
232
Go to comments
Report
<?php
$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
$result=array_flip($a1);
print_r($result);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus