Current array:
Array (
[name] => Array (
[name1] => Array (
[0] => some value1
)
[name2] => Array (
[0] => some value2
)
[name3] => Array (
[0] =>
)
)
Wanted array:
Array (
[name] => Array (
[name1] => Array (
[0] => some value1
)
[name2] => Array (
[0] => some value2
)
)
Since name3[0]
doesn't contain any value, it needs to be removed.
From what I read, I should use array_filter
for this, but I can't get it to work.