I am playing around with cj website services and SOAP I can make the query và I get an array from the results stored in a single variable. When I
I get an array that looks like:stdClass Object ( => stdClass Object ( => 10 => 0 AnthonySterling August 30, 2014, 3:06pm #2
Is this any clearer?products = array(); var_dump( $response ); /* object(stdClass)#1 (1) } */ foreach($response->products as $product) Michael_Morris1 August 30, 2014, 3:06pm #3
I don’t personally use it - it’s a poor man’s array at best. You can iterate over it, but you lose the power of the various array related functions whenever you use it.
Bạn đang xem: Estellebenavidezsalathe September 5, 2014, 12:30pm #4
how would I take an array lượt thích this và create a foreach() statement when the array is stored in a variable called $result ?
The only array in there is named Product and you can loop over the products like:foreach ($results->products->Product as $product) CyberToolz September 5, 2014, 12:30pm #5
Thanks for the quichồng responses guys.
Is there any way to convert it to a more efficient mysql or xml type array? I actually have sầu a few different questions regarding the data I can and can’t get using curl, dom, and setting headers and stuff, just didnt know how to lớn go about doing it without bombarding the forums.
The only array in there is named Product & you can loop over the products like:foreach ($results->products->Product as $product)
I also tried code similar too:foreach ($results->out->products->mô tả tìm kiếm as $product) $foo = new Foo(); if ($foo instanceof stdClass) else
output is NopeMichael_Morris1 September 5, năm trước, 12:31pm #9
Not true.class Foo else
output is Nope
I said “Implicitly extends”. You’re giving an example of a test of Explicit extension. Implicit and Explicit vày not mean the same thing - in fact they are antonyms.