Well, I need a help, I have a function that returns the following array:
Array (
[0] => Array (
[0] => valor1
[2] => valor2
)
[1] => Array (
[0] => valor3
[1] => valor4
[3] => valor5
)
)
I need to turn it around:
Array (
[0] => Array (
[0] => valor1
[1] => valor2
)
[1] => Array (
[0] => valor3
[1] => valor4
[2] => valor5
)
)
I saw in the NA stack that a guy solved the problem using this function:
var_dump(
array_map(
create_function('$x','$k = key($x);
return (is_numeric($k)) ? array_values($x) : $x;'
),$aDiff
)
);
But I did not quite understand where to replace the values ...
Any help will be welcome!