Skip to content

Instantly share code, notes, and snippets.

View vediansoft's full-sized avatar

Tom van Tilburg vediansoft

View GitHub Profile
@vediansoft
vediansoft / phone-to-iso.php
Created September 30, 2020 14:29
php array phone country code to ISO 3166-2 and 3166-3 and name
<?php
return [
263 => ["iso" => ["ZW", "ZWE"], "name" => "Zimbabwe"],
260 => ["iso" => ["ZM", "ZMB"], "name" => "Zambia"],
967 => ["iso" => ["YE", "YEM"], "name" => "Yemen"],
212 => ["iso" => ["MA", "MAR"], "name" => "Morocco"],
681 => ["iso" => ["WF", "WLF"], "name" => "Wallis and Futuna"],
1340 => ["iso" => ["VI", "VIR"], "name" => "U.S. Virgin Islands"],
84 => ["iso" => ["VN", "VNM"], "name" => "Vietnam"],