MikeK Posted March 24, 2007 Share Posted March 24, 2007 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 More sharing options...
Orio Posted March 24, 2007 Share Posted March 24, 2007 Try using $order->products[0]['model'] Orio. Link to comment https://forums.phpfreaks.com/topic/44116-solved-array-of-arrays/#findComment-214214 Share on other sites More sharing options...
MikeK Posted March 24, 2007 Author Share Posted March 24, 2007 Thx Link to comment https://forums.phpfreaks.com/topic/44116-solved-array-of-arrays/#findComment-214234 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.