How to remove empty values from multidimensional array in PHP?

前端 未结 8 2339
梦如初夏
梦如初夏 2020-12-06 11:47

I\'ve been looking a lot of answers, but none of them are working for me.

This is the data assigned to my $quantities array:

Array(
             


        
8条回答
  •  忘掉有多难
    2020-12-06 12:37

    $newArray = array_map('array_filter', $array);
    

    This sintax it's work and very help full thank's guys ..

提交回复
热议问题