Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7533307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:41:38+00:00 2026-05-30T05:41:38+00:00

Array ( [0] => Array ( [PACKAGE] => Array ( [0] => Array (

  • 0
Array (
  [0] => Array (
    [PACKAGE] => Array (
      [0] => Array (
        [ATTRIBUTES] => Array (
          [ID] => 0
        )
        [ZIPORIGINATION] => Array (
          [0] => Array (
            [VALUE] => 32751
          )
        )
        [ZIPDESTINATION] => Array (
          [0] => Array (
            [VALUE] => 55967
          )
        )
        [POUNDS] => Array (
          [0] => Array (
            [VALUE] => 0
          )
        )
        [OUNCES] => Array (
          [0] => Array (
            [VALUE] => 9
          )
        )
        [CONTAINER] => Array (
          [0] => Array (
            [VALUE] => Flat Rate Box
          )
        )
        [SIZE] => Array (
          [0] => Array (
            [VALUE] => REGULAR
          )
        )
        [ZONE] => Array (
          [0] => Array (
            [VALUE] => 6
          )
        )
        [POSTAGE] => Array (
          [0] => Array (
            [MAILSERVICE] => Array (
              [0] => Array (
                [VALUE] => Priority Mail<sup>&reg;</sup> Medium Flat Rate Box
              )
            )
            [RATE] => Array (
              [0] => Array (
                [VALUE] => 11.35
              )
            )
          )
        )
      )
    )
  )
)

Array (
  [0] => price Object (
    [mailservice] => Priority Mail<sup>&reg;</sup> Medium Flat Rate Box
    [rate] => 11.35
  )
)

…yeah. I need to search through these and pull out the RATE value, which here is 11.35.

For/each loops have failed me so far, any other ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:41:39+00:00Added an answer on May 30, 2026 at 5:41 am

    Here is a function to do this for you:

    findKey($myarray,$searchKey) {
        foreach($myarray as $key=>$value) {
           if($key==$searchKey) return $value;
           if(is_array($value) || is_object($value)) {
               $returned = findKey($value,$searchKey);
               if($returned) return $returned;
           }
        }
        return false;
    }
    
    // call it like this:
    findKey($yourArray,"rate")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you turn this string: package.deal.category Into an array like this: $array['package']['deal']['category'] The value
Is it possible to create a java representation of a package-level oracle associative array.
I have the following which is an array package.Resources If I use package.Resources.ToList().Add(resouce); package.Resources
I'm working on a hot-upgrade feature and need to package up an array of
I'm trying to alter the attributes of an array of Buttons, however I am
SELECT ARRAY[1,2,3] - ARRAY[5,NULL,6] I am using contrib _int.sql package for array operations in
I am using a package and it is returning me an array. When I
Array 1 | Array 2 ================= 1 | 2 2 | 3 3 |
Array.Copy and Buffer.BlockCopy both do the same thing, but BlockCopy is aimed at fast
Array ( [4] => stdClass Object ( [vid] => 4 [name] => Movie [description]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.