Untitled

mail@pastecode.io avatar
unknown
php
7 months ago
2.3 kB
3
Indexable
Never
$dbBankList = array(
        array('name' => "ZİRAAT BANKASI", 'slug' => "ziraat", 'country' => 'TR', 'bankcode' => '00010'),
        array('name' => "HALKBANK", 'slug' => "halkbank", 'country' => 'TR', 'bankcode' => '00012'),
        array('name' => "VAKIFLAR BANKASI", 'slug' => "vakiflar", 'country' => 'TR', 'bankcode' => '00015'),
        array('name' => "TEB", 'slug' => "teb", 'country' => 'TR', 'bankcode' => '00032'),
        array('name' => "AKBANK", 'slug' => "akbank", 'country' => 'TR', 'bankcode' => '00046'),
        array('name' => "GARANTİ BANKASI", 'slug' => "garanti", 'country' => 'TR', 'bankcode' => '00062'),
        array('name' => "İŞ BANKASI", 'slug' => "isbank", 'country' => 'TR', 'bankcode' => '00064'),
        array('name' => "YAPI KREDİ", 'slug' => "yapikredi", 'country' => 'TR', 'bankcode' => '00067'),
        array('name' => "İNG BANK", 'slug' => "ingbank", 'country' => 'TR', 'bankcode' => '00099'),
        array('name' => "FİBABANKA", 'slug' => "fibabanka", 'country' => 'TR', 'bankcode' => '00103'),
        array('name' => "FİNANSBANK", 'slug' => "finansbank", 'country' => 'TR', 'bankcode' => '00111'),
        array('name' => "DENİZBANK", 'slug' => "denizbank", 'country' => 'TR', 'bankcode' => '00134'),
        array('name' => "ALBARAKA TÜRK", 'slug' => "albaraka", 'country' => 'TR', 'bankcode' => '00203'),
        array('name' => "KUVEYTTÜRK", 'slug' => "kuveytturk", 'country' => 'TR', 'bankcode' => '00205'),
        array('name' => "TÜRKİYE FİNANS", 'slug' => "turkiyefinans", 'country' => 'TR', 'bankcode' => '00206'),
        array('name' => "ZİRAAT KATILIM", 'slug' => "ziraatkatilim", 'country' => 'TR', 'bankcode' => '00209'),
        array('name' => "VAKIF KATILIM", 'slug' => "vakifkatilim", 'country' => 'TR', 'bankcode' => '00210'),
    );

	$kontrolBasamak = substr($_POST['setIban'], 0, 2);  // Kontrol Basamak
	$bankaKodu = substr($_POST['setIban'], 2, 5);  // Banka Kodu
	$rezervAlani = substr($_POST['setIban'], 7, 1);  // Rezerv Alanı
	$hesapno = substr($_POST['setIban'], 8, 16); // Hesap numarası

	$aranan = $bankaKodu;
	$bankIbanCheckList = array_filter($dbBankList,function($deger)use ($aranan) {
	    return $deger['bankcode']==$aranan;
	});
	$keys = array_keys($bankIbanCheckList)[0];