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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.