Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
204 B
3
Indexable
Never
$xmlProducts = [];

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