clear php empty array

Posted by redcoder on Stack Overflow See other posts from Stack Overflow or by redcoder
Published on 2010-05-21T23:14:30Z Indexed on 2010/05/21 23:20 UTC
Read the original article Hit count: 162

Filed under:
|

i have the following array and want to get rid/remove the empty array and rearrange it in an order.can anyone help me please.

Array (

[ufile] => Array
    (

        [name] => Array
            (
                [0] => chicken soup.jpg
                [1] => 
                [2] => hot n sour sup.jpg
                [3] => 
                [4] => 
                [5] => 
                [6] => 
                [7] => 
                [8] => 
            )

        [type] => Array
            (
                [0] => 
                [1] => 
                [2] => 
                [3] => 
                [4] => 
                [5] => 
                [6] => 
                [7] => 
                [8] => 
            )

        [tmp_name] => Array
            (
                [0] => 
                [1] => 
                [2] => 
                [3] => 
                [4] => 
                [5] => 
                [6] => 
                [7] => 
                [8] => 
            )

        [error] => Array
            (
                [0] => 1
                [1] => 4
                [2] => 1
                [3] => 4
                [4] => 4
                [5] => 4
                [6] => 4
                [7] => 4
                [8] => 4
            )

        [size] => Array
            (
                [0] => 0
                [1] => 0
                [2] => 0
                [3] => 0
                [4] => 0
                [5] => 0
                [6] => 0
                [7] => 0
                [8] => 0
            )

    )

)

© Stack Overflow or respective owner

Related posts about php

Related posts about array