$iban, ); $curl_header_data = array( 'Authorization: token jfZMtaqkUAqKnp6cha5vpQjlrbl4TLLPgDspecgCaW-no2z-zDhOovTUv8GvJhdS', ); curl_setopt($curl,CURLOPT_URL,$service_url); curl_setopt($curl, CURLOPT_HTTPHEADER, curl_header_data); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data); $curl_response = curl_exec($curl); if ($curl_response === false) { $info = curl_getinfo($curl); curl_close($curl); die('error occured during curl exec. Additioanl info: ' . var_export($info)); } curl_close($curl); $xml = new SimpleXMLElement($curl_response); //echo $xml->valid; if(isset($xml->valid) && $xml->valid){ return $xml->bic; }else{ return "inkorrekt"; } } $ibans=array("DE71660100750010334757", "DE79660908000001357107", "DE74585501300100479211", "DE49585501300100592666", "DE22662900000284651405", "DE57550905000000600474", "DE17750903000000008257", "DE82650501100048766131", "DE60660100750136583753", "DE91476501300047000823", "DE55700700240833442700", "DE24662913000013041601", "DE35662500300012235404", "DE40478613170008707005", "DE61660908000002581183", "DE87643500700000234948", "DE53662900000020207604", "DE29550501201011142724", "DE96660908000001542265", "DE82672917000017334000", "DE16660700040214246100", "DE98320500000094444759", "DE51547500100000244699", "DE42500905000004242434", "DE92660100750223243753", "DE96721500000050762103", "DE87160500004640021343", "DE47660908000003561038", "DE94300209000702741655", "DE50683500480101604742", "DE53553900000013096007", "DE57660100750097468751", "DE83420700240204888200", "DE51660908000001159925", "DE72694500650010555714", "DE53200411440002444883", "DE19545201946590449197", "DE13301602135402873010", "DE64604200009602751632", "DE51660908000003446700", "DE68663916000100618907", "DE67672300004479911327", "DE18660908000004046463", "DE39500905000004627675", "DE36501900000076660425", "DE59545400330205413800", "DE95350603864347690002", "DE98545613100200821780", "DE44500100600193439602", "DE94666500850002611104", "DE80494501201000511962", "DE25447615341091148100", "DE41300209001906731441", "DE73660908000001305999", "DE76540502200000065300", "CH3409000000405388724", "DE63661900000010404843", "DE49850503004120901438", "DE71200700240793918400", "DE03660700240081851800", "DE22550905000003565424", "DE52542617000000030899", "DE42700530700001024959", "DE83660800524565823800", "DE18660908000003237095", "DE89375514400200117794", "DE83650501100000936868", "DE70320500000067483628", "DE70662700010032476400", "DE49700700240847307600", "DE73350500000307015479", "DE98312612820001053019", "DE90660100750106023751", "DE59674500480004111449", "DE29700100800346456801", "DE49680501010000992637", "DE62660621381000033983", "DE36660501010022814503", "DE69440800500399999300", "DE38660908000001038036", "DE90661900000055550000", "DE92701500000096121827", "DE34660603000000925900", "DE06850503004120222921", "DE40660908000003174425", "DE08300800000106091000", "DE73120300001033968767", "DE44120300001013759533", "DE70500502011201511303", "DE26664500500088112067", "DE27506500230137055430", "DE58620500000007437432", "DE21600908000003244397", "DE81600501017836015073", "DE29662500300030263156", "DE07665512900050286400", "DE87610605000207317003", "DE80350400380530244300", "DE24700202704840157992", "DE32300606010401512846", "DE03660603000001522523", "DE67414601163228122200", "DE52370100500780363504", "DE30600908000005311111", "DE15700100800157683801", "DE19305500000000100388", "DE53545800200141861000", "DE40660908000003760111", "DE65700100800803340800", "DE77660908000002975297", "DE97650501100086523305", "DE94641500200002641216", "DE85660908000004775473", "DE10600501017496308577", "DE81547900000000363553", "DE50360700240407146000", "DE37672300000001705689", "DE59672101112216561100", "DE06721608180009665331", "DE40550905000002576864", "DE27500502011251822388", "DE73550905000000214514", "DE98500105175400777235", "DE94508900000044890208", "DE76672901000157445103", "DE71553500100000720533", "DE03680900000001929402", "DE26600908000000237792", "DE58360100430214183434", "DE24664500500088880440", "DE38700202700082711260", "DE40255914130025324300", "DE44632500300000947053", "DE07660501010020823324", "DE14600908000000514458", "DE73700905000000848352", "DE05790500000042111922", "DE19590100660151109661", "DE56546912000117641104", "DE64600908000007871590", "DE88401637200038599100", "DE72380707240212282800", "DE29750903000003096424", "DE73661900000002097001", "DE28684922000001029355", "DE19291526700010283422", "DE92600501010005589674", "DE77860400000100108000", "DE35660908000002065126", "DE30660908000000386146", "DE95350603864347690002", "DE79548514400000078535", "DE97200700240317671600", "DE11200100200402101201", "DE43684922000001036360", "DE46660908000003953033", "DE13560501801304049164", "DE48662913000000937606", "DE09600908000002976602" ); foreach ($ibans as $dieIBAN){ //echo $dieIBAN.",".getBIC($dieIBAN)." //"; } ?>