[Solved] how to create one array of values from multidimensional array

[ad_1]

Currently your two arrays are equal and just printed diffrently. The only difference, I could see is, that one array uses strings as values and the other not.

To change this, you could explicitly cast the values with array_map.

$int_array = array_map(function ($a) {
    return (string) $a;
}, $array);

If you just want the values of the array, you should use array_values, which returns the values from the array with the keys.

$values = array_values($array);

Depends on your use case, what you want to use

[ad_2]

solved how to create one array of values from multidimensional array