**
**

The demonstration program below demonstrates using the function to compute the equatorial and polar meridian circumferences of the Earth according to the WGS-84 Earth ellipsoid model used by the GPS system. The parameters for any other ellipsoid model could also be used instead.

The function is an implementation of (**Eq. 6**), above.

Double-Click to select ALL code

Below is the PHP code for only the ellipse circumference function, without all the comments.

Double-Click to select ALL code