获取银行的简称
/* *获取银行卡简码 *@param $bankCode 银行简码 *@return $bankName 银行名称 */ public function getBankCode($bankName){ $banklist = [ "工商银行" => "ICBC", "农业银行" => "ABC", "招商银行" => "CMB", "建设银行" => "CCB", "北京银行" => "BCCB", "中国银行" => "BOC", "交通银行" => "COMM", "民生银行" => "CMBC", "上海银行" => "BOS", "渤海银行" => "CBHB", "光大银行" => "CEB", "兴业银行" => "CIB", "中信银行" => "CITIC", "浙商银行" => "CZB", "广发银行" => "GDB", "华夏银行" => "HXB", "杭州银行" => "HZCB", "南京银行" => "NJCB", "平安银行" => "PINGAN", "邮政储蓄银行" => "PSBC", "浦发银行" => "SPDB", "宁波银行" => "NINGBO", "花旗银行" => "CITI", "江苏银行" => "JIANGSU" ]; $bank = trim($bankName); if(!empty($banklist[$bankName])){ return $banklist[$bankName]; }else{ return ""; } }
获取所有简称对应的银行名称
/* *获取银行卡名称 *@param $bankCode 银行简码 *@return $bankName 银行名称 */ public function getbankName($bankCode){ $banklist = [ "ICBC" => "工商银行", "ABC" => "农业银行", "CMB" => "招商银行", "CCB" => "建设银行", "BCCB" => "北京银行", "BOC" => "中国银行", "COMM" => "交通银行", "CMBC" => "民生银行", "BOS" => "上海银行", "CBHB" => "渤海银行", "CEB" => "光大银行", "CIB" => "兴业银行", "CITIC" => "中信银行", "CZB" => "浙商银行", "GDB" => "广发银行", "HXB" => "华夏银行", "HZCB" => "杭州银行", "NJCB" => "南京银行", "PINGAN" => "平安银行", "PSBC" => "邮政储蓄银行", "SPDB" => "浦发银行", "NINGBO" => "宁波银行", "CITI" => "花旗银行", "JIANGSU" => "江苏银行" ]; $bank = trim($bankCode); if(!empty($banklist[$bankCode])){ return $banklist[$bankCode]; }else{ return ""; } }
更多简称
$arr = [ 'ASCB' => '鞍山银行', 'ARCU' => '安徽省农村信用社', 'BJBANK' => '北京银行', 'BJRCB' => '北京农商行', 'BSB' => '包商银行', 'BOHAIB' => '渤海银行', 'BDCBANK' => '保定银行', 'BOCFCB' => '中银富登村镇银行', 'JKRFCZYH' => '长春经开融丰村镇银行', 'CRCBANK' => '重庆农村商业银行', 'CSRCB' => '常熟农商银行', 'CDCB' => '成都银行', 'CCQTGB' => '重庆三峡银行', 'CSCB' => '长沙银行', 'CQBANK' => '重庆银行', 'LYRTCZYH' => '长春绿园融泰村镇银行', 'BOCD' => '承德银行', 'CCHRCZYH' => '长春朝阳和润村镇银行', 'BOCZ' => '沧州银行', 'BOCY' => '朝阳银行', 'CABANK' => '长安银行', 'CDRCB' => '成都农商银行', 'DRCBCL' => '东莞农村商业银行', 'HKBEA' => '东亚银行', 'DLB' => '大连银行', 'DYCCB' => '东营银行', 'DZBANK' => '德州银行', 'DLRCB' => '大连农村商业银行', 'DYCB' => '长城华西银行', 'BOD' => '东莞银行', 'ORBANK' => '鄂尔多斯银行', 'FXCB' => '阜新银行', 'FDB' => '富滇银行', 'FJNX' => '福建省农村信用社联合社', 'FJHXBC' => '福建海峡银行', 'FBBANK' => '富邦华一银行', 'GDB' => '广发银行', 'GDRCC' => '广东省农村信用社联合社', 'GZRCU' => '贵州省农村信用社联合社', 'NYBANK' => '广东南粤银行', 'BGB' => '广西北部湾银行', 'GRCB' => '广州农村商业银行', 'GCB' => '广州银行', 'GSBANK' => '甘肃银行', 'GYCB' => '贵阳银行', 'GHB' => '广东华兴银行', 'GXRCU' => '广西壮族自治区农村信用社联合社', 'GZB' => '赣州银行', 'ZYCBANK' => '贵州银行', 'GLBANK' => '桂林银行', 'GSRCU' => '甘肃省农村信用社', 'HXBANK' => '华夏银行', 'BOHN' => '海南省农村信用社', 'UBCHN' => '海口联合农商银行', 'HURCB' => '湖北省农村信用合作联社', 'EGBANK' => '恒丰银行', 'HANABANK' => '韩亚银行', 'HSBANK' => '徽商银行', 'HRXJB' => '华融湘江银行', 'HBC' => '湖北银行', 'HLDB' => '葫芦岛银行', 'HSBK' => '衡水市商业银行', 'BHB' => '河北银行', 'HZCB' => '杭州银行', 'HBRCU' => '河北省农村信用社', 'HRBANK' => '哈尔滨银行', 'QYBANK' => '韩国企业银行', 'HNRCU' => '河南省农村信用社', 'HNRCC' => '湖南省农村信用社', 'HDBANK' => '邯郸银行', 'HLJRCU' => '黑龙江省农村信用社联合社', 'HKB' => '汉口银行', 'HZCCB' => '湖州银行', 'HSCZB' => '湖商村镇银行', 'COMM' => '交通银行', 'JSBANK' => '江苏银行', 'JSRCU' => '江苏省农村信用社联合社', 'JXRCU' => '江西省农村信用社', 'JSB' => '晋商银行', 'JHBANK' => '金华银行', 'BOJZ' => '锦州银行', 'JZCBANK' => '焦作中旅银行', 'JZBANK' => '晋中银行', 'JLBANK' => '吉林银行', 'JJBANK' => '九江银行', 'NCB' => '江西银行', 'JNBANK' => '济宁银行', 'JINCHB' => '晋城银行', 'CZRCB' => '江南农村商业银行', 'JRCB' => '江苏江阴农村商业银行', 'JXBANK' => '嘉兴银行', 'CJCCB' => '江苏长江商业银行', 'TCRCB' => '江苏太仓农村商业银行', 'JLRCU' => '吉林省农村信用社联合社', 'KLB' => '昆仑银行', 'KSRB' => '昆山农村商业银行', 'LSBANK' => '莱商银行', 'LSBC' => '临商银行', 'LANGFB' => '廊坊银行', 'LHBANK' => '漯河银行', 'LYCB' => '辽阳银行', 'DAQINGB' => '龙江银行', 'LSCCB' => '乐山市商业银行', 'LNRCC' => '辽宁省农村信用社', 'LZYH' => '兰州银行', 'URB' => '联合村镇银行', 'BOL' => '洛阳银行', 'LZCCB' => '柳州银行', 'LUZBANK' => '泸州市商业银行', 'MYBANK' => '绵阳市商业银行', 'KJCZYH' => '梅县客家村镇银行', 'NXRCU' => '宁夏黄河农村商业银行', 'H3CB' => '内蒙古银行', 'CGNB' => '四川天府银行', 'NDHB' => '宁波东海银行', 'NXBANK' => '宁夏银行', 'NMGNXS' => '内蒙古农村信用社联合社', 'NBBANK' => '宁波银行', 'NJCB' => '南京银行', 'NBCBANK' => '宁波通商银行', 'BNY' => '南阳市商业银行', 'NHB' => '南海农商银行', 'SPDB' => '浦发银行', 'SPABANK' => '平安银行', 'PZHCCB' => '攀枝花市商业银行', 'BOP' => '平顶山银行', 'QLBANK' => '齐鲁银行', 'QDCCB' => '青岛银行', 'QHRC' => '青海省农村信用社', 'BOQZ' => '泉州银行', 'BOQH' => '青海银行', 'ZBCB' => '齐商银行', 'QJCCB' => '曲靖市商业银行', 'RZB' => '日照银行', 'YDNSCZYH' => '尧都农商银行村镇银行', 'SHBANK' => '上海银行', 'SDEB' => '顺德农商银行', 'SCCB' => '三门峡银行', 'SZSBK' => '石嘴山银行', 'SJBANK' => '盛京银行', 'SRCB' => '深圳农村商业银行', 'SDRCU' => '山东省农村信用社联合社', 'SXRCCU' => '陕西信合', 'SXRCU' => '山西省农村信用社', 'SHRCB' => '上海农商银行', 'SNCCB' => '遂宁银行', 'SCRCU' => '四川省农村信用社联合社', 'SRBANK' => '上饶银行', 'BOSZ' => '苏州银行', 'SXCB' => '绍兴银行', 'TJBHB' => '天津滨海农村商业银行', 'TACCB' => '泰安银行', 'TLBANK' => '铁岭银行', 'TCCB' => '天津银行', 'TZCB' => '台州银行', 'TRCB' => '天津农商银行', 'WHBANK' => '乌海银行', 'KEB' => '外换银行', 'WRCB' => '无锡农村商业银行', 'BANKWF' => '潍坊银行', 'WJRCB' => '吴江农村商业银行', 'WZCB' => '温州银行', 'ANTBANK' => '网商银行', 'WHRCB' => '武汉农村商业银行', 'URMQCCB' => '乌鲁木齐银行', 'WHCCB' => '威海市商业银行', 'CIB' => '兴业银行', 'XMBANK' => '厦门银行', 'XTB' => '邢台银行', 'XJRCU' => '新疆农村信用社', 'XIB' => '厦门国际银行', 'XABANK' => '西安银行', 'BOSH' => '新韩银行', 'BOYK' => '营口银行', 'WOORI' => '友利银行', 'YZBANK' => '银座村镇银行', 'RXCB' => '榆次融信村镇银行', 'YBCCB' => '宜宾市商业银行', 'YTBANK' => '烟台银行', 'YXCCB' => '云南红塔银行', 'YKYHCCB' => '营口沿海银行', 'NBYZ' => '鄞州银行', 'YNRCC' => '云南省农村信用社', 'ICBC' => '中国工商银行', 'ABC' => '中国农业银行', 'CCB' => '中国建设银行', 'CMB' => '招商银行', 'BOC' => '中国银行', 'PSBC' => '中国邮政储蓄银行', 'CITIC' => '中信银行', 'CMBC' => '中国民生银行', 'CEB' => '中国光大银行', 'RBOZ' => '珠海华润银行', 'MTBANK' => '浙江民泰商业银行', 'CZBANK' => '浙商银行', 'ZZYH' => '枣庄银行', 'ZRCBANK' => '张家港农村商业银行', 'ZGCCB' => '自贡银行', 'ZJNX' => '浙江省农村信用社联合社', 'ZYB' => '中原银行', 'CZCB' => '浙江稠州商业银行', 'ZJKCCB' => '张家口银行', 'ZJTLCB' => '浙江泰隆商业银行', 'ZZBANK' => '郑州银' ];