Some popular phone numbers are advertised in an alphanumeric form (eg. 1300-FOOBAR
), based on the idea that a traditional phone keypad has letters under each number.
If you are running a VOIP server then you may be interested in this snippet of PHP code to convert them into actual numbers, allowing users to dial by typing that more familiar form.
|
|
Note that this will only alter the number if it begins with numbers. This is to make sure that the local network extensions (which in my case are ASCII usernames) don’t get transformed along the way:
|
|