I have an array as such:
$d = [
0 => [
0 => 'lorem',
1 => 'dorem',
3 => '',
4 => 'ipsum'
],
1 => [
0 => 'test',
1 => 'rere',
3 => '',
4 => 'youp'
]
];
My issue is that I need to remove empty values from the array. How would I go about using array_filter
in removing such empty keys/values from the multidimensional array? I have over 162 sets of arrays totaling 62 each, so this problem is via a large data set.