<?php
$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");$result=array_flip($a1);
print_r($result);
?>
OutPut:
Array ( [red] => a [green] => b [blue] => c [yellow] => d )
Syntex:
array_flip(array)
Your Daily Digital Dose Here !
<?php
$a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow");
Comments
Post a Comment