How to store array values in new array?

$array = [[0=>'ENG'],[0=>'IND'],[0=>'PAK'],[0=>'ING']];

$result = call_user_func_array('array_merge', $array);

echo "<pre>";
print_r($result);

Above code you mention is not useful. I made an array and flattened.

output:

Array
(
    [0] => ENG
    [1] => IND
    [2] => PAK
    [3] => ING
)

Browse More Popular Posts

Leave a Comment