- file_get_contents: documentation ( source)
- explode: documentation ( source)
<?php
$bin = '402100';
$getbank = explode($bin, file_get_contents("http://bins.pro/search?action=searchbins&bins=" . $bin . "&bank=&country="));
$jeniscc = explode("</td><td>", $getbank[2]);
$namabnk = explode("</td></tr>", $jeniscc[5]);
$ccbrand = $jeniscc[2];
$ccbank = $namabnk[0];
$cctype = $jeniscc[3];
$ccklas = $jeniscc[4];
//$details = json_decode(xcurl('https://bins.ribbon.co/api/v1/bins/420000'.substr($cardnum, 0, 6)));
$info = $ccbrand.'['.$cctype.'-'.$ccklas.'] : '.$ccbank;