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

                                )

 

                        )

 

                )

 

 

Archived

This topic is now archived and is closed to further replies.

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