[OT] Finding country code from full MSISDN in PHP
"Alex Kinch" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <07c901c3a98a$764db150$0501a8c0@alex> |
Hi, A bit [OT] but thought I'd ask. Has anyone got a PHP snippet that'll parse a full MSISDN and return the country code? I figured one way to do it would be run a loop of SQL selects on the first four,three,two,one digits of the MSISDN until a match was found - but there must be a better way? Alex