arrays - PHP Foreach Loop stops several loops into the iteration -


i have function call returns following array nested objects.

$customertransactionssummary = tickethut_get_red61via_customer_transactions_summary(); 

result:

array (     [0] => viaapitransactionsummary object         (             [orderid] => 4139:2841             [title] => 4139:dionvn:110514:174803835ib             [date] => 2014-05-11 17:48:45         )      [1] => viaapitransactionsummary object         (             [orderid] => 4139:4686             [title] => 4139:web001:310514:164913426os             [date] => 2014-05-31 16:50:39         )      [2] => viaapitransactionsummary object         (             [orderid] => 4139:4892             [title] => 4139:web001:020614:171508714rb             [date] => 2014-06-02 17:15:08         )      [3] => viaapitransactionsummary object         (             [orderid] => 4139:6445             [title] => 4139:web001:160614:155254808ma             [date] => 2014-06-16 16:05:27         )         (...) 

i creating foreach loop uses orderid , title items , passes them function.

//fetch order summary: foreach ($customertransactionssummary $customertransactionsummary) {      $ordersummary = tickethut_get_red61via_order_summary($customertransactionsummary->orderid, $customertransactionsummary->title); } 

if output $customertransactionsummary inside foreach loop stops after 18 iterations.

$counter = 1; foreach ($customertransactionssummary $customertransactionsummary) {   echo $counter; $counter++;  $ordersummary = tickethut_get_red61via_order_summary($customertransactionsummary->orderid, $customertransactionsummary->title);  } 

does know causing this?


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -