Teşekkürler yardım içi ama tam yapamadım sanırım. Boyle yaptım olmadı bu şekildemı demek sıtedıgınız
[attributes] => 4 Sonuc bunu verdi
foreach( $urun->attributes->attribute as $ozellik){
$attributes1[] = array('attributeId' =>(string) $ozellik->id, 'attributeValueId' =>(string) $ozellik->valueId);
}
$attributes2 = array( "attributeId"=>47,"customAttributeValue"=>"Pembe");
$attributes= array_push($attributes1,$attributes2);
Burayı incele yardımcı olacaktır.
https://www.php.net/manual/tr/contro...es.foreach.php