PHP Fiyat Analizi Yardım

Bu konuyu okuyanlar

baha5454

Öğrenci
Katılım
28 Ekim 2018
Mesajlar
1
Reaksiyon puanı
0
Puanları
1
Yaş
37
merhaba arkadaşlar

ben bot ile veri çekip linklerde en küçük sayıyı bulmaya çalışıyorum onda sıkıntı yok fakat for döngüsüne soktuğumda sıkıntı yaşıyorum

örneğin;
link1 = enkucuk 1000
link2 = enkucuk300 ben böyle çıktı almak istiyorum fakat olan

link1 = enkucuk1000
link2 = enkuuck1000

kodlar;
"
$kSorgu = Sorgu("SELECT * FROM site_analiz ORDER BY id DESC");
while($kSonuc = Sonuc($kSorgu)){

$sayfak = $kSonuc->urun_id;
$durum = $kSonuc->durum;

if($durum==1){



$link = $kSonuc->adres;

$botara = file_get_contents($link);

preg_match("#<script>__NEXT_DATA__ \= (.*);__NEXT_LOADED_PAGES#si", $botara, $sonucla);

$jsonCiktilar = json_decode($sonucla[1]);
$fiyatlar = $jsonCiktilar->props->pageProps->offers->offers;
foreach ($fiyatlar as $icrk => $strn) {
if ($strn->merchant->id=="104") {
"-fiyat \n";
} else {

$fiyatListesi[] = $strn->pricePlusTax;

}
}

$enkucuk = min($fiyatListesi);
echo '<pre>';
echo $enkucuk;
//echo '</pre>';
"
 
Üst