Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

associative array in php have same value join them


<?php
$a = array('green', 'red', 'yellow');
$b = array('avocado', 'apple', 'banana');
$c = array_combine($a, $b);

print_r($c);
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #associative #array #php #join
ADD COMMENT
Topic
Name
2+9 =