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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:34:36+00:00 2026-05-29T11:34:36+00:00

I am fetching the TransactionList through affiliateservice api . My print_r($response) gives me this

  • 0

I am fetching the TransactionList through affiliateservice api.
My print_r($response) gives me this (I had to put xx but actually there are numbers there):

stdClass Object
(
    [getTransactionListReturn] => Array
        (
            [0] => stdClass Object
                (
                    [iId] => xx
                    [sStatus] => pending
                    [sType] => normal
                    [sIp] => xx
                    [bPaid] => xx
                    [iPaymentId] => xx
                    [iMerchantId] => xx
                    [fSaleAmount] => xx
                    [fCommissionAmount] => xx
                    [dClickDate] => xx 
                    [dTransactionDate] => xx
                    [sClickref] => xx
                    [aTransactionParts] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [sCommissionGroupName] => STANDARD
                                    [fSaleAmount] => xx
                                    [fCommissionAmount] => xx
                                    [iCommission] => xx
                                    [sCommissionType] => percentage
                                )

                        )

                )

            [1] => stdClass Object
                (
                    [iId] => x
                    [sStatus] => pending
                    [sType] => normal
                    [sIp] => x
                    [bPaid] => 
                    [iPaymentId] => x
                    [iMerchantId] => x
                    [fSaleAmount] => x
                    [fCommissionAmount] => x
                    [dClickDate] => x
                    [dTransactionDate] => x
                    [sClickref] => x
                    [sSearchSiteName] => x
                    [sSearchSiteKeyword] => x
                    [aTransactionParts] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [sCommissionGroupName] => DEFAULT
                                    [fSaleAmount] => x
                                    [fCommissionAmount] => x
                                    [iCommission] => x
                                    [sCommissionType] => percentage
                                )

                        )

                )

        )

    [getTransactionListCountReturn] => stdClass Object
        (
            [iRowsReturned] => 2
            [iRowsAvailable] => 386
        )

)

So, my question is how can I “parse” this in PHP? I mean how can I access these data? I mean something like

$response[0]->sStatus; 

Thank you for your help!

  • 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-29T11:34:38+00:00Added an answer on May 29, 2026 at 11:34 am

    Everything is an instance of the stdClass, the standard class in PHP (except for the arrays, of course :)).

    This means you would use -> to access the properties of each object.

    $someSaleAmount = 
           $response->getTransactionListReturn[0]->aTransactionParts[0]->fSaleAmount;
    

    You probably got this from using json_decode(). You can set the second parameter to true if you’d rather deal with arrays than objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Fetching http://graph.facebook.com/514417 from the Facebook Graph API gives me the NSString @http://www.facebook.com/mattdipasquale . How
I am fetching my sites subpages through ajax function. All is working well. But
When fetching a query, is there a penalty for setting the fetch limit to
I am fetching some data from a site using its API-key and some other
I am fetching a webpage ( http://autoweek.com ) and trying to process it but
I'm fetching some data from an MSSQL table using the mssql_fetch_object, but the text
While fetching Boolean data from database with hibernate SQL query gives the following error
Im fetching an array from my sql database, but the string has spaces in
im fetching an image from internet using the below code using an Async task,But
I'm fetching a JSON response and with that response, I have two values: Air

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.