39.92, 'long' => 116.46 ); $point2 = array( 'lat' => 24.51, 'long' => 117.658 ); $distance = getDistanceBetweenPointsNew($point1['lat'], $point1['long'], $point2['lat'], $point2['long']); print_r($distance); ?>