Google has some amazing services, one of my favourites would have to be the ability to geocode an address and get not only the lat/long but a clean, well formatted address back.
How you say... Easy!
Get yourself an api key from here: http://code.google.com/apis/maps/signup.html
use the following php code:
$long = $loc->Placemark->Point->coordinates;