Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php add to multidimensional array

$array1 = array("color" => "red", 2, 4);
$array2 = array("a", "b", "color" => "green", "shape" => "trapezoid", 4);
$result = array_merge($array1, $array2);
print_r($result);
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #add #multidimensional #array
ADD COMMENT
Topic
Name
9+3 =