Jump to content

how to see what is in an array(ALL FIXED THANKS ALL)


keithschm

Recommended Posts

If you want the output from any of those functions to be readable in the browser window, surround them with [nobbc]<pre></pre>[/nobbc] tags. For example:
[code]<?php
echo '<pre>' . print_r($somearray,true) . '</pre>';
?>[/code]

Ken
WOW

thank you all so much for your help.

now this array seems very comlicated to me as it looks like arrays inside arrays

[code]

Array
(
    [0] => Array
        (
            [1DA] => 27.84
        )

    [1] => Array
        (
            [1DP] => 24.23
        )

    [2] => Array
        (
            [2DA] => 14.33
        )

    [3] => Array
        (
            [3DS] => 10.60
        )

    [4] => Array
        (
            [GND] => 6.65
        )

)

[/code]

it is the return values for ups quotes.  I need to alter it.  the text is the shipping type and the numbers is the cost.  I need to subtract the value associted with the GND  from all the other vales in the array

I tried "for each" but I am lost

any sugestion

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.