I have a set of points (stored as lat/lon) for a polygon, I want to compute the lat/lon center point of the polygon in PHP.

Basically to do the same thing as the getCenter() function in Google Maps [LatLngBounds](http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds).

Any ideas on how I can achieve this?