根据以下付款方式过滤数组

时间:2014-07-19 15:11:01

标签: php arrays multidimensional-array

   Array
   (
     [ totalRecords ] => 15
     [ items ] => Array
     (
        [0] => Array
            (
                [id] => 1
                [title] =>  
                [from] => 399.0000
                [to] => 0.0000
                [cost] => 4.9900
                [payment_method] => bankpayment
                [currency] => EUR
                [status] => enabled
            )

        [1] => Array
            (
                [id] => 3
                [title] => 
                [from] => 399.0000
                [to] => 0.0000
                [cost] => 10.9900
                [payment_method] => cashondelivery
                [currency] => EUR
                [status] => enabled
            )

        [2] => Array
            (
                [id] => 4
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 6.9900
                [payment_method] => bankpayment
                [currency] => EUR
                [status] => enabled
            )

        [3] => Array
            (
                [id] => 5
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 6.9900
                [payment_method] => cashondelivery
                [currency] => EUR
                [status] => enabled
            )

        [4] => Array
            (
                [id] => 6
                [title] => 
                [from] => 399.0000
                [to] => 0.0000
                [cost] => 4.9900
                [payment_method] => paypal_express
                [currency] => EUR
                [status] => enabled
            )

        [5] => Array
            (
                [id] => 7
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 6.9900
                [payment_method] => bankpayment
                [currency] => EUR
                [status] => enabled
            )

        [6] => Array
            (
                [id] => 9
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 12.9900
                [payment_method] => cashondelivery
                [currency] => EUR
                [status] => enabled
            )

        [7] => Array
            (
                [id] => 10
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 16.9900
                [payment_method] => santander
                [currency] => EUR
                [status] => enabled
            )

        [8] => Array
            (
                [id] => 11
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 9.9900
                [payment_method] => paypal_express
                [currency] => EUR
                [status] => enabled
            )

        [9] => Array
            (
                [id] => 12
                [title] => 
                [from] => 799.9900
                [to] => 0.0000
                [cost] => 8.9900
                [payment_method] => bankpayment
                [currency] => EUR
                [status] => enabled
            )

        [10] => Array
            (
                [id] => 13
                [title] => 
                [from] => 799.9900
                [to] => 0.0000
                [cost] => 14.9900
                [payment_method] => cashondelivery
                [currency] => EUR
                [status] => enabled
            )

        [11] => Array
            (
                [id] => 14
                [title] => 
                [from] => 799.9900
                [to] => 0.0000
                [cost] => 12.9900
                [payment_method] => paypal_express
                [currency] => EUR
                [status] => enabled
            )

        [12] => Array
            (
                [id] => 15
                [title] => 
                [from] => 399.0000
                [to] => 0.0000
                [cost] => 14.9900
                [payment_method] => santander
                [currency] => EUR
                [status] => enabled
            )

        [13] => Array
            (
                [id] => 16
                [title] => 
                [from] => 400.0000
                [to] => 799.9900
                [cost] => 16.9900
                [payment_method] => santander
                [currency] => EUR
                [status] => enabled
            )

        [14] => Array
            (
                [id] => 17
                [title] => 
                [from] => 799.9900
                [to] => 0.0000
                [cost] => 19.9000
                [payment_method] => santander
                [currency] => EUR
                [status] => enabled
            )

    )

)

enter image description here

我想在图像中显示数组值。所有值在数组中都是正确的。从字段中得到的399.000是正确的值而不是0

0 个答案:

没有答案