I was wondering if anyone could help me out, I have a multidimensional array and I need the values removed if they're empty (well, set to 0). Here's my array:
Array
(
[83] => Array
(
[ctns] => 0
[units] => 1
)
[244] => Array
(
[ctns] => 0
[units] => 0
)
[594] => Array
(
[ctns] => 0
)
)
And I want to only be left with:
Array
(
[83] => Array
(
[units] => 1
)
)
If anyone could help me, that would be fantastic! :)