Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

array flat php

$c = ["a" => ["x" => "X", "y" => "Y"], "b" => ["p" => "P", "q" => "Q"]];
print_r(array_merge(...array_values($c)));

Array
(
    [x] => X
    [y] => Y
    [p] => P
    [q] => Q
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #flat #php
ADD COMMENT
Topic
Name
6+1 =