Jump to content

[SOLVED] stdClass Object help getting variables


moviedrome

Recommended Posts

I have the following stored in $response and this is what i get when i print_r $response (it continues to 80 rows but i haven't shown them all.  What i need to do is be able to print for [0] [sStatus] for example and for [1] [iMerchantId]. I've tried printing them and i'm not sure what i'm doing wrong. Please help!

 

 

stdClass Object

(

    [getTransactionListReturn] => Array

        (

            [0] => stdClass Object

                (

                    [iId] => 15780442

                    [sStatus] => pending

                    [sType] => normal

                    [bPaid] => false

                    [iPaymentId] => 0

                    [iMerchantId] => 1681

                    [fSaleAmount] => 1

                    [fCommissionAmount] => 40

                    [dClickDate] => 2008-04-13 12:15:10

                    [dTransactionDate] => 2008-04-13 13:20:16

                    [dValidationDate] => 2008-04-13 13:20:16

                    [sClickref] => jono310

                    [aTransactionParts] => Array

                        (

                            [0] => stdClass Object

                                (

                                    [sCommissionGroupName] => default

                                    [fSaleAmount] => 1

                                    [fCommissionAmount] => 40

                                    [iCommission] => 40

                                    [sCommissionType] => amount

                                )

 

                        )

 

                )

 

            [1] => stdClass Object

                (

                    [iId] => 15961215

                    [sStatus] => confirmed

                    [sType] => normal

                    [bPaid] => false

                    [iPaymentId] => 0

                    [iMerchantId] => 1952

                    [fSaleAmount] => 1.99

                    [fCommissionAmount] => 16

                    [dClickDate] => 2008-04-22 21:34:35

                    [dTransactionDate] => 2008-04-22 22:47:14

                    [dValidationDate] => 2008-04-29 10:06:13

                    [sClickref] => user48755offer75

                    [aTransactionParts] => Array

                        (

                            [0] => stdClass Object

                                (

                                    [sCommissionGroupName] => Books Direct Top Gear x 2_0_1.99_2

                                    [fSaleAmount] => 1.99

                                    [fCommissionAmount] => 16

                                    [iCommission] => 16

                                    [sCommissionType] => amount

                                )

 

                        )

 

                )

 

 

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.