+ Start a Discussion
Shahab KhanShahab Khan 

PHP Toolkit not returning data in sequence

Hello,

I am using PHP latest toolkit.
I have written the query "SELECT Id, Name, Amount, CloseDate, StageName from Opportunity Limit 5"
but toolkit returing the result in different sequence like below
 
[0] => stdClass Object
                (
                    [Id] => 006M000000BcyHxIAJ
                    [Amount] => 50
                    [CloseDate] => 2015-01-21
                    [Name] => Faisal Naeem- Donation 1/21/2015
                    [StageName] => Posted
                )

            [1] => stdClass Object
                (
                    [Id] => 006M000000BcyIUIAZ
                    [Amount] => 50
                    [CloseDate] => 2015-02-11
                    [Name] => Faisal Naeem Donation (4) 2/11/2015
                    [StageName] => Pledged
                )

There should be first ID then Name then amount then close date and the last stagename.
Can any body help me how to get result data in sequence.?

Thanks,
Faraz
ShashankShashank (Salesforce Developers) 
Please try posting it as an issue here: https://github.com/developerforce/Force.com-Toolkit-for-PHP/issues