Thanks for that, that does the trick. One thing though, I don't know
if its the code of the api, but I have some zipcodes being returned
twice. I don't know if thats the api doing that or my code is making
duplicates, but it occurs both in the list made by the foreach loop
and the "print_r($simple_xml);" Now I can work around this, by
loading each zipcode into my own array and checking before I load
eachone to see if it already exists in the array but I though you
should know in case it is a problem on your end with the api, or maybe
there is a reason it does that I am not aware of.
Thanks again for your help though.
> Check out this pastebin:
http://pastebin.com/rjLzWgn5
>
> You will see that I am going to typecast the returned simplexml object
> (because it's not heavy on resources) and then it echo's out:
> zipcode-city-state
>
> Check out the array for $tmp_zip to see what information is available
> for your application.
>
> If you need anything else let me know,
> Chad
>
> On Oct 1, 2:20 pm, Ryan524 <
rbile...@gmail.com> wrote:
>
>
>
> > Thank you that is very helpful, though for some reason its obly
> > listing 1 zipcode but the retuened xml has several zipcodes. You can
> > see my full code athttp://
pastebin.com/qzipFTcJformy simple test
> > > - Show quoted text -- Hide quoted text -