Answers for "two array combine ad a key and value pair in laravel"

PHP
5

php combine arrays

$output = array_merge($array1, $array2);
Posted by: Guest on June-03-2020
0

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);
?>
Posted by: Guest on October-24-2020

Code answers related to "two array combine ad a key and value pair in laravel"

Browse Popular Code Answers by Language