[ create a new paste ] login | about

Link: http://codepad.org/xpSUedId    [ raw code | output | fork ]

naitik - PHP, pasted on Sep 11:
1
2
3
4
5
6
7
8
9
<?php


$array = array("10" => array("25.00" => 1),"1" => array("30.00" => ''));


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

print_r($newArray);


Output:
1
2
3
4
5
6
7
8
9
10
11
12
Array
(
    [10] => Array
        (
            [25.00] => 1
        )

    [1] => Array
        (
        )

)


Create a new paste based on this one


Comments: