Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $inn = array( '5614054688', '0216995824', '563400210401', '5651021708', '7453296285', '7724477672', '5614071436', '5605021076', '5623030933', '5635042348', '561413289500', '5612040217', '2130160440', '563300004420', '5614043044', '5623012388', '5603041091', '7722471330', '564680083709', '5610118080', '5638065199', '5651020285', '5604032371', '5635021549', '561203042112', '564101287126', '5614068835', '5610226600', '560301112542', '7708587205', '5642022381', '052600850372', '5611080947', '563501272789', '5614074860', '5614080776', '5609192555', '5611084162', '5609076460', '5618011029', '5614027050', '5610010369', '5611066967', '5610096486', '5610140304', '5611063331', '5614030221', '5610233990', '565101400542', '5610010190', '5609078732', '5607041448', '5614060120', '5614055258', '5614073546', '5635021147', '550530004398', '5614058241', '6321433712', '5636022062', '5612070363', '5609085338', '563101673708', '5609176338', '563800115600', '564902429301', '5638063709', '5614024958', '5612169122', '5610228069', '561002840841', '5610218303', '5610226382', '561011874460', '5609048992', '5612038867', '5642022913', '5631021192', '5610161625', '5614074469', '561501770639', '5614042516', '564303144032', '5610152772', '5609176190', '7604345219', '5611034676', '5610240228', '5623030556', '561200147847', '5609179988', '5638029271', '561109845360', '5638031760', '5635041672', '5607142132', '5612064458', '5638070801', '5651021793', '5611076570', '5612086606', '564300122584', '5610149949', '5612047396', '6143089872', '5611086233', '5610216472', '5602008239', '5612164340', '5602021536', '6372023513', '5610149931', '560103983202', '5610235940', '5609192530', '564202743350', '023302495686', '5603031008', '5612161268', '5612161740', '5612065162', '5612175567', '5611070096', '5609195130', '560401416505', '5638068577', '5609190741', '5609099210', '5609177123', '563807628552', '5609188911', '6319204169', '6829036232', '564303796197', '7325120399', '5610058890', '5612060083', '2311295022', '5610009116', '5611071117', '5609181105', '5609095456', '5612082785', '5637021625', '560907327786', '5609084119', '5609190036', '5610156657', '5610235813', '5610095443', '560993973942', '5603011467', '5631020030', '5610136210', '5609194538', '5609060823', '561400678193', '5614081917', '560404593541', '5614083689', '5621020658', '5610229175', '5638021321', '5602009730', '5624002696', '5612167453', '6372010497', '5629004672', '5611084236', '561208283993', '562099212462', '7448212515', '7719555477', '5609189471', '5609186008', '5607046767', '5609098898', '5610224554', '5638058530', '563802390352', '5610093414', '7326044052', '561106680720', '5624020342', '5612169860', '5612077104', '5609074640', '5610215447', '5640021343', '5638074073', '5601021702', '5610213545', '635785578180', '5609178367', '6312124429', '5607143143', '5603047368', '5603037049', '563804666165', '5642022494', '0268091308', '560912423990', '5638072213', '563603753435', '560701318354', '5614057449', '3662273291', '6454124495', '5612081862', '5610234908', '5610062913', '5611079652', '5609091596', '5609064666', '5614014597', '562300137121', '5638075824', '5643021253', '5612077714', '5609186248', '5612075971', '745228745491', '5639006012', '5610238557', '5622005187', '5651020239', '5611082711', '561211428913', '5610220246', '5610155861', '5609181352', '5609182765', '5610235690', '560900957203', '5612078228', '5611080249', '5628027067', '562700039827', '562201128662', '5614075230', '5643008446', '565001865329', '5607046573', '5610075415', '561107393260', '5609183663', '666102630247', '5638068538', '6686055065', '7724679358', '5643005195', '560308528701', '5603016289', '560302416705', '5620020905', '5607046887', '4705055334', '5609087832', '5610228414', '5610148568', '560305986238', '5606021696', '5612064049', '561803606441', '561503237190', '7455021092', '5612062789', '5609066310', '563903914620', '5609186030', '5648020983', '5612077672', '5610085300', '5611050131', '5611082694', '8603148330', '561213228620', '5610222155', '562300280812', '5611059416', '5609063038', '5610055585', '6452059466', '561443054087', '5611064021', '5610066837', '5650010252', '5614071323', '7717154455', '5610140914', '5610080648', '5614086224', '5603014517', '280701748016', '564602627454', '5610053845', '5610227121', '561800030897', '5614070778', '560500661836', '561803629946', '561902305491', '590522368238', '5609099242', '026206939126', '0232011235', '5638077596', '5610065248', '5610238500', '637720545581', '1650178441', '5636000990', '5609090088', '5636007265', '5612064480', '5610230607', '564802699008', '562003119514', '561010006735', '5610111991', '5610143256', '5609087014', '5638063956', '563101108569', '760401037453', '5616001265', '5603006523', '5612046836', '5609074738', '561401541628', '5614029554', '5614059397', '5604033015', '5610070311', '5609070162', '7604184561', '5612041732', '560902227065', '5607017646', '5614058932', '5609177204', '7725386393', '5609097598', '6714032792', '6672204711', '5612163561', '5607043766', '5603035933', '5607143785', '0276908664', '7719846540', '5609178938', '5609037246', '5638022406', '6311173222', '430301329046', '5609096731', '6671408455', '366223088736', '5611082736', '5609184032', '0277918390', '0273920952', '5644020213', '7604247638', '5609038144', '5617021497', '5614053564', '7455007612', '6316241236', '5609072931', '562801398702', '5614068313', '5614078400', '561502932924', '5609098908', '563806928708', '561412679480', '5610095570', '5609196528', '2721098412', '563801427313', '560993989830', '5638050435', '5603013009', '5603048428', '5603040958', '5603011202', '5609187080', '7452154048', '450700440916', '0275910004', '5610220870', '5638073432', '5625021300', '5611078232', '5609070331', '662302068941', '5611067960', '5609188580', '0267020858', '5610235429', '5609097559', '2302049422', '5614053370', '6617027701', '5647020444', '5610113124', '0245962492', '5630020291', '562801894475', '5614063273', '560503360097', '5611070434', '1650296325', '5638071763', '5611076267', '5605022584', '5607142189', '5611035454', '5638057575', '5610085036', '7723875649', '5610144813', '5638029360', '5612173545', '5614073320', '5610051333', '5612086518', '561211604358', '561407378946', '5614072398', '564902838304', '5638067478', '564301279570', '5024147964', '5611067350', '5610233622', '561010747317', '5646011278', '5609177130', '5649120130', '5629004552', '6312203536', '5610234111', '5611025255', '564000005375', '5637021600', '561210177953', '5636021397', '6311182643', '5612066222', '5611079170', '6451006091', '5612163219', '5610159538', '5610227523', '5621006572', '6372024073', '6311180727', '5402055601', '3327127459', '7802363266', '5610073930', '6671414360', '0268087238', '6452950739', '561400627223', '5609190100', '5638023431', '5638073231', '5631005539', '6381006031', '563302187602', '5609190318', '5605021608', '5606005334', '5610215623', '5610211033', '6678049156', '5609066303', '5603014027', '3627029170', '7728888722', '560600033909', '561209864510', '5611021349', '562600058463', '560401229463', '6623127983', '6671386402', '2461216446', '5651021137', '5610132857', '5610112219', '5612030667', '561002544426', '5612071310', '5638057462', '5638076497', '5610081994', '560901727410', '5636022016', '5638028782', '563701048329', '565100595264', '6319248053', '0233005675', '5611086346', '5602024657', '5638071474', '5612074907', '316565800090', '5646033225', '2312159047', '2311220796', '5612167301', '5638021402', '5612064137', '5609176747', '5609183430', '5610111416', '5611082503', '3702516722', '5611077253', '2223605807', '7455009810', '7116511504', '5609192509', '5638073224', '5612038560', '5611078673', '5612080210', '5603037747', '181201275850', '6623004300', '0274927277', '5610149770', '5638016674', '5641020913', '2311199287', '5611035976', '5610225212', '5635010307', '6732056228', '5610136795', '022700305928', '6681011956', '5617021419', '5609182772', '5638025260', '5609176169', '561013021450', '5642023674', '5649005836', '5609176680', '5610221909', '2312176370', '560202259505', '5602005855', '7805431316', '5603011072', '7721478364', '5634020486', '5610234810', '561010460434', '5612173873', '5612160377', '5610235877', '560600233263', '5611087068', '560400606408', '710710871880', '5610051862', '5609095262', '5609178494', '5612085666', '5610241366', '5642022141', '561015111490', '5614080078', '5603016190', '5614009967', '5610150246', '5609080562', '263408992833', '2635127028', '0561054668', '2635826770', '5610082719', '5609178110', '5607142446', '5610239127', '5614027606', '5610241870', '5609062517', '561107790309', '5603038116', '0233004689', '563802605343', '5629004802', '5625007249', '5612072233', '5607140488', '772749234490', '5610055779', '564603354182', '5612160754', '0273915656', '5614057093', '5610162851', '5609099034', '5610134269', '5190027617', '5610060338', '0233006037', '5610240242', '5633003262', '5650004403', '5610164753', '5611070762', '5638016265', '6318024540', '5610070985', '6685163452', '5611053372', '560707215771', '5615020025', '0274153802', '6731065950', '635705018065', '5645000234', '7727773366', '5433966481', '5612001360', '6317104240', '6330088364', '3460077047', '7816634117', '753613265404', '7536137419', '7536161796', '7536173865', '6320031619', '5614075328', '5610237923', '3459077807', '5503098376', '9719004875', '5646012151', '5614065390', '561409483801', '5639020105', '7720483273', '6950112955', '5603016176', '6154074973', '5610085163', '5610229440', '5610131719', '5610140760', '5609047741', '0233005097', '5638070449', '5603014010', '6315648438', '5611085247', '5610228654', '561801534086', '5643021895', '5643007851', '5609183198', '7453328716', '6319181137', '5610141668', '5610116439', '5609176088', '564600165490', '0263015141', '564679884550', '5638070262', '5619005211', '5612075322', '5610219890', '5612174806', '5607142238', '5610236790', '5612087977', '5614018471', '560303905699', '5610132938', '350301474893', '6311170461', '0276955921', '6658532206', '5617020775', '561200842061', '563809719300', '5612086081', '561203146048', '5612085384', '5610130507', '5610058554', '6313549463', '5610211280', '6317105437', '5610091551', '5032064239', '5609183737', '5610213489', '6318011887', '5651020581', '5646001167', '3662282440', '3665145298', '5610058191', '5614062826', '560306915021', '5649020383', '5610092435', '5638067870', '7447258690', '5638068182', '562902551523', '6658448120', '5609065187', '5405987049', '5610234746', '5622020474', '5642021980', '6321441470', '5611056743'); function post_sl($data){ $curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_POST => 1, CURLOPT_HEADER => 0, CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => "https://suggestions.dadata.ru/suggestions/api/4_1/rs/findById/party", CURLOPT_POSTFIELDS => json_encode($data), CURLOPT_HTTPHEADER => array_merge(array("Content-Type: application/json", "Authorization: Token fb6a17fa6887dd097c0844e22fbd07f0ece2563c", "X-Secret: be9175893a4d061da8bc13bfca63ce682be52dc0")), ]); $res = curl_exec($curl); curl_close($curl); return (json_decode($res, 1) ? json_decode($res, 1) : $res); } $email = []; foreach($inn as $value){ $data = ["query"=> $value]; $d = post_sl($data); $email_dadata = explode(",", $d['suggestions'][0]['data']['emails'][0]['data']['source']); $email_dadata = trim($email_dadata[0]); array_push($email, $email_dadata); } print_r($email); ?>
Copy Clear