i have some array
Array
(
[data] => Array
(
[0] => Array
(
[0] => 1
[1] => MOUSE
[2] => 0
[3] => 1
)
[1] => Array
(
[0] => 2
[1] => LAPTOP
[2] => 0
[3] => 0
)
[3] => Array
(
[0] => 4
[1] => PHONE
[2] => 0
[3] => 0
)
)
)
i need to remove "0" values from the array so the result should be.
Array
(
[data] => Array
(
[0] => Array
(
[0] => 1
[1] => MOUSE
[2] => 0
[3] => 1
)
)
)
how to remove it with a dynamic code ? because it will execute large of array. an i stuck in it for days