/ Published in: PHP
Include file that contains the array of areacodes and states. **This file is needed for the Areacode Script to work. Script here: http://snipplr.com/view/17339/area-code-lookup-script/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // ****************************************************** // // areacode.inc.php -- Areacode Lookup Include File // // // // Author: Brad Arnold -- http://arnoldb.com // // // // Licensed under Creative Commons - Share Alike // // Licensed under GPL2 // // // // This simple script will take an inputted area code // // and return the state in which the area code belongs. // // // // This file contains the areacode and state information // // needed for the script to run. This filename must stay // // the same unless changes to the code are made. // // ****************************************************** // 403 => "Alberta, Canada", 907 => "Alaska", 205 => "Alabama", 256 => "Alabama", 334 => "Alabama", 251 => "Alabama", 870 => "Arkansas", 501 => "Arkansas", 479 => "Arkansas", 480 => "Arizona", 623 => "Arizona", 928 => "Arizona", 602 => "Arizona", 520 => "Arizona", 628 => "California", 341 => "California", 764 => "California", 925 => "California", 909 => "California", 562 => "California", 661 => "California", 657 => "California", 510 => "California", 650 => "California", 949 => "California", 760 => "California", 415 => "California", 951 => "California", 752 => "California", 831 => "California", 209 => "California", 669 => "California", 408 => "California", 559 => "California", 626 => "California", 442 => "California", 530 => "California", 916 => "California", 707 => "California", 627 => "California", 714 => "California", 310 => "California", 323 => "California", 213 => "California", 424 => "California", 747 => "California", 818 => "California", 858 => "California", 935 => "California", 619 => "California", 805 => "California", 369 => "California", 720 => "Colorado", 303 => "Colorado", 970 => "Colorado", 719 => "Colorado", 203 => "Connecticut", 959 => "Connecticut", 475 => "Connecticut", 860 => "Connecticut", 202 => "District of Columbia", 302 => "Delaware", 689 => "Florida", 407 => "Florida", 239 => "Florida", 836 => "Florida", 727 => "Florida", 321 => "Florida", 754 => "Florida", 954 => "Florida", 352 => "Florida", 863 => "Florida", 904 => "Florida", 386 => "Florida", 561 => "Florida", 772 => "Florida", 786 => "Florida", 305 => "Florida", 861 => "Florida", 941 => "Florida", 813 => "Florida", 850 => "Florida", 478 => "Georgia", 770 => "Georgia", 470 => "Georgia", 404 => "Georgia", 706 => "Georgia", 678 => "Georgia", 912 => "Georgia", 229 => "Georgia", 671 => "Guam", 808 => "Hawaii", 515 => "Iowa", 319 => "Iowa", 563 => "Iowa", 641 => "Iowa", 712 => "Iowa", 208 => "Idaho", 217 => "Illinois", 282 => "Illinois", 872 => "Illinois", 312 => "Illinois", 773 => "Illinois", 464 => "Illinois", 708 => "Illinois", 815 => "Illinois", 224 => "Illinois", 847 => "Illinois", 618 => "Illinois", 309 => "Illinois", 331 => "Illinois", 630 => "Illinois", 765 => "Indiana", 574 => "Indiana", 260 => "Indiana", 219 => "Indiana", 317 => "Indiana", 812 => "Indiana", 913 => "Kansas", 785 => "Kansas", 316 => "Kansas", 620 => "Kansas", 327 => "Kentucky", 502 => "Kentucky", 859 => "Kentucky", 606 => "Kentucky", 270 => "Kentucky", 504 => "Lousiana", 985 => "Lousiana", 225 => "Lousiana", 318 => "Lousiana", 337 => "Lousiana", 774 => "Massachusetts", 508 => "Massachusetts", 781 => "Massachusetts", 339 => "Massachusetts", 857 => "Massachusetts", 617 => "Massachusetts", 978 => "Massachusetts", 351 => "Massachusetts", 413 => "Massachusetts", 443 => "Maryland", 410 => "Maryland", 280 => "Maryland", 249 => "Maryland", 969 => "Maryland", 240 => "Maryland", 301 => "Maryland", 207 => "Maine", 383 => "Maine", 517 => "Michigan", 546 => "Michigan", 810 => "Michigan", 278 => "Michigan", 313 => "Michigan", 586 => "Michigan", 248 => "Michigan", 734 => "Michigan", 269 => "Michigan", 906 => "Michigan", 989 => "Michigan", 616 => "Michigan", 231 => "Michigan", 679 => "Michigan", 947 => "Michigan", 612 => "Minnesota", 320 => "Minnesota", 651 => "Minnesota", 763 => "Minnesota", 952 => "Minnesota", 218 => "Minnesota", 507 => "Minnesota", 636 => "Missouri", 660 => "Missouri", 975 => "Missouri", 816 => "Missouri", 314 => "Missouri", 557 => "Missouri", 573 => "Missouri", 417 => "Missouri", 670 => "Northern Mariana Islands", 601 => "Mississippi", 662 => "Mississippi", 228 => "Mississippi", 406 => "Montana", 336 => "North Carolina", 252 => "North Carolina", 984 => "North Carolina", 919 => "North Carolina", 980 => "North Carolina", 910 => "North Carolina", 828 => "North Carolina", 704 => "North Carolina", 701 => "North Dakota", 402 => "Nebraska", 308 => "Nebraska", 603 => "New Hampshire", 908 => "New Jersey", 848 => "New Jersey", 732 => "New Jersey", 551 => "New Jersey", 201 => "New Jersey", 862 => "New Jersey", 973 => "New Jersey", 609 => "New Jersey", 856 => "New Jersey", 505 => "New Mexico", 957 => "New Mexico", 702 => "Nevada", 775 => "Nevada", 315 => "New York", 518 => "New York", 716 => "New York", 585 => "New York", 646 => "New York", 347 => "New York", 718 => "New York", 212 => "New York", 516 => "New York", 917 => "New York", 845 => "New York", 631 => "New York", 607 => "New York", 914 => "New York", 216 => "Ohio", 330 => "Ohio", 234 => "Ohio", 567 => "Ohio", 419 => "Ohio", 380 => "Ohio", 440 => "Ohio", 740 => "Ohio", 614 => "Ohio", 283 => "Ohio", 513 => "Ohio", 937 => "Ohio", 918 => "Oklahoma", 580 => "Oklahoma", 405 => "Oklahoma", 503 => "Oregon", 971 => "Oregon", 541 => "Oregon", 814 => "Pennsylvania", 717 => "Pennsylvania", 570 => "Pennsylvania", 358 => "Pennsylvania", 878 => "Pennsylvania", 835 => "Pennsylvania", 484 => "Pennsylvania", 610 => "Pennsylvania", 445 => "Pennsylvania", 267 => "Pennsylvania", 215 => "Pennsylvania", 724 => "Pennsylvania", 412 => "Pennsylvania", 939 => "Puerto Rico", 787 => "Puerto Rico", 401 => "Rhode Island", 843 => "South Carolina", 864 => "South Carolina", 803 => "South Carolina", 605 => "South Dakota", 423 => "Tennessee", 865 => "Tennessee", 931 => "Tennessee", 615 => "Tennessee", 901 => "Tennessee", 731 => "Tennessee", 254 => "Texas", 325 => "Texas", 713 => "Texas", 940 => "Texas", 817 => "Texas", 430 => "Texas", 903 => "Texas", 806 => "Texas", 737 => "Texas", 512 => "Texas", 361 => "Texas", 210 => "Texas", 936 => "Texas", 409 => "Texas", 979 => "Texas", 972 => "Texas", 469 => "Texas", 214 => "Texas", 682 => "Texas", 832 => "Texas", 281 => "Texas", 830 => "Texas", 956 => "Texas", 432 => "Texas", 915 => "Texas", 435 => "Utah", 801 => "Utah", 385 => "Utah", 434 => "Virginia", 804 => "Virginia", 757 => "Virginia", 703 => "Virginia", 571 => "Virginia", 540 => "Virginia", 276 => "Virginia", 381 => "Virginia", 236 => "Virginia", 802 => "Vermont", 509 => "Washington", 360 => "Washington", 564 => "Washington", 206 => "Washington", 425 => "Washington", 253 => "Washington", 715 => "Wisconsin", 920 => "Wisconsin", 414 => "Wisconsin", 262 => "Wisconsin", 608 => "Wisconsin", 353 => "Wisconsin", 420 => "Wisconsin", 304 => "West Virginia", 307 => "Wyoming"); ?>
URL: http://www.arnoldb.com/2009/06/17/areacode-lookup-script/