[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.