DykasAbhirret
New Member
i got this object:\[code\]SimpleXMLElement Object\n(\n [@attributes] => Array\n (\n [article_number] => 550007\n )\n\n [serial_number] => Array\n (\n [0] => 5500070000126237\n [1] => 5500070000126246\n [2] => 5500070000126255\n [3] => 5500070000126264\n [4] => 5500070000126273\n )\n\n)\n\[/code\]i want to access the attribute like this , but it doesnt seem to work:\[code\]foreach($product_array as $codes) {error_log($codes->product[0]->attributes()->article_number);}\[/code\]