Sorry, it might be a very simple answer, but I have tried and took a look at google several times and I am disparing right now. I want to clear the following array ($list). Here is a print_r:
Array ( [0] => Array (
[0] => 1
[1] => Tomato
[2] =>
)
[1] => Array (
[0] =>
)
)
I want to get rid of [2] => after Tomato and the second value [1] => Array ( [0] => ) There might be ten or more worts like Tomato.
Thanks!
Example from comments below array_filter documentation: