PHP code example of lit / mcc-mnc
1. Go to this page and download the library: Download lit/mcc-mnc library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lit / mcc-mnc example snippets
var_dump(\Lit\MccMnc\Mcc::toCountryName('460'));
string(5) "China"
var_dump(\Lit\MccMnc\Mcc::toCountryISO('460'));
string(2) "cn"
var_dump(\Lit\MccMnc\Mnc::toNetwork('460', '04'));
string(12) "China Mobile"