Untitled

 avatar
unknown
plain_text
3 years ago
204 B
3
Indexable
$xmlProducts = [];

foreach($xml->item as $item){
    if(strpos($item->urunadi, 'atlet') !== false{
        $xmlProducts['selected'][] = $item;
    }else{
        $xmlProducts['others'][] = $item;
    }
}