Jump to content

[SOLVED] Array of arrays ?


MikeK

Recommended Posts

got lost in this......anyone familiar with OSC CRE_L will recognise this

 

the $order array is an array of arrays  I can get to the products array $order->products but I really want to extract the value in that array of name or model

 

This is the array of $order->products

 

Array ( [0] => Array ( [qty] => 1 [name] => Credit [model] => GIFT5 [tax] => 0 [tax_description] => Unknown tax rate [price] => 5.0000 [final_price] => 5 [weight] => 0.00 [id] => 1 ) )

 

tried $val = $order->products['model']  doesnt return anything and I'm unsure as to why not

 

Please can anyone advise me

Link to comment
https://forums.phpfreaks.com/topic/44116-solved-array-of-arrays/
Share on other sites

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.