Aşağıdaki kod stok kodu 1057 ile 21057 olanı da eşliyor. Tam eşleme nasıl yapabilirim? Bilgisi olan yardımcı olursa memnun olurum. Teşkkürler.
if (!strpos((string)$product->model, (string)$code)) {
continue; // eşleşme
} 2
●130
if (!strpos((string)$product->model, (string)$code)) {
continue; // eşleşme
} if (!preg_match("/\b".preg_quote($code)."\b/i", $product->model)) {
continue;
}