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 6762509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:20:10+00:00 2026-05-26T14:20:10+00:00

I am using json decode to get some array back. the returned object looks

  • 0

I am using json decode to get some array back.

the returned object looks something like this

   Array
   (
[0] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103005
        [ga] => 
        [gsis] => 55267
        [gt] => REG
        [h] => BAL
        [hnn] => ravens
        [hs] => 30
        [q] => F
        [rz] => 0
        [t] => 1:00
        [v] => ARI
        [vnn] => cardinals
        [vs] => 27
    )

[1] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103003
        [ga] => 
        [gsis] => 55268
        [gt] => REG
        [h] => CAR
        [hnn] => panthers
        [hs] => 21
        [q] => F
        [rz] => 0
        [t] => 1:00
        [v] => MIN
        [vnn] => vikings
        [vs] => 24
    )

[2] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103001
        [ga] => 
        [gsis] => 55269
        [gt] => REG
        [h] => HOU
        [hnn] => texans
        [hs] => 24
        [q] => F
        [rz] => 0
        [t] => 1:00
        [v] => JAC
        [vnn] => jaguars
        [vs] => 14
    )

[3] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103000
        [ga] => 
        [gsis] => 55270
        [gt] => REG
        [h] => NYG
        [hnn] => giants
        [hs] => 20
        [q] => F
        [rz] => 0
        [t] => 1:00
        [v] => MIA
        [vnn] => dolphins
        [vs] => 17
    )

[4] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103004
        [ga] => 
        [gsis] => 55271
        [gt] => REG
        [h] => STL
        [hnn] => rams
        [hs] => 31
        [q] => F
        [rz] => 0
        [t] => 1:00
        [v] => NO
        [vnn] => saints
        [vs] => 21
    )

[5] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103002
        [ga] => 
        [gsis] => 55272
        [gt] => REG
        [h] => TEN
        [hnn] => titans
        [hs] => 27
        [q] => F
        [rz] => 0
        [t] => 1:00
        [v] => IND
        [vnn] => colts
        [vs] => 10
    )

[6] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103007
        [ga] => 
        [gsis] => 55273
        [gt] => REG
        [h] => BUF
        [hnn] => bills
        [hs] => 23
        [q] => F
        [rz] => 0
        [t] => 4:05
        [v] => WAS
        [vnn] => redskins
        [vs] => 0
    )

[7] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103006
        [ga] => 
        [gsis] => 55274
        [gt] => REG
        [h] => DEN
        [hnn] => broncos
        [hs] => 10
        [q] => F
        [rz] => 0
        [t] => 4:05
        [v] => DET
        [vnn] => lions
        [vs] => 45
    )

[8] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103008
        [ga] => 
        [gsis] => 55275
        [gt] => REG
        [h] => PIT
        [hnn] => steelers
        [hs] => 25
        [q] => F
        [rz] => 0
        [t] => 4:15
        [v] => NE
        [vnn] => patriots
        [vs] => 17
    )

[9] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103010
        [ga] => 
        [gsis] => 55277
        [gt] => REG
        [h] => SEA
        [hnn] => seahawks
        [hs] => 12
        [q] => F
        [rz] => 0
        [t] => 4:15
        [v] => CIN
        [vnn] => bengals
        [vs] => 34
    )

[10] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103009
        [ga] => 
        [gsis] => 55276
        [gt] => REG
        [h] => SF
        [hnn] => 49ers
        [hs] => 20
        [q] => F
        [rz] => 0
        [t] => 4:15
        [v] => CLE
        [vnn] => browns
        [vs] => 10
    )

[11] => stdClass Object
    (
        [d] => Sun
        [eid] => 2011103011
        [ga] => 
        [gsis] => 55278
        [gt] => REG
        [h] => PHI
        [hnn] => eagles
        [hs] => 34
        [q] => F
        [rz] => 0
        [t] => 8:20
        [v] => DAL
        [vnn] => cowboys
        [vs] => 7
    )

[12] => stdClass Object
    (
        [d] => Mon
        [eid] => 2011103100
        [ga] => 
        [gsis] => 55279
        [gt] => REG
        [h] => KC
        [hnn] => chiefs
        [hs] => 0
        [q] => P
        [rz] => 0
        [t] => 8:30
        [v] => SD
        [vnn] => chargers
        [vs] => 0
    )

)

now If i justed wanted to print the information of a specific array. how do i go about doing this. for eg.

out of the above array . I just need the information in the array where [gsis] => 55279.

  • 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-26T14:20:11+00:00Added an answer on May 26, 2026 at 2:20 pm

    You need to loop them thru. Make a function.

    function search_object(array $object_array, $desired_number) {
        foreach($object_array as $one) {
            if($one->gsis == $desired_number) {
                return $one;
            }
        }
        //no result found
        return null;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I get some JSON back from a service request that looks like this:
i am using jQuery to get some JSON data from a php file. my
I have an extremely simple JSON object that looks like the following: var data
I'm using RestKit for HTTP requests, and with some request, I get JSON response
I am using Json.NET to serialize an object graph. For each object that is
I parse data using JSON in javascript, I find this is very convenient. But
I'm using JSON-Framework in my project successfully to decode JSON send from a server.
Using Javascript. I'm trying to loop through an array encoded with JSON. Here is
I am using curl to get a json file which can be located here:
i am using this widget to get my users to create accounts: <iframe src=http://www.facebook.com/plugins/registration.php?

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.