Works beautifully. Thanks!

...Rene

On Friday, July 16, 2004, at 04:36 PM, Tim Van Wassenhove wrote:

function degrees2compass($degrees)
{
    $compass = array('N', 'NNW', 'NNE', 'NE', ...);
    $index = $heading_degrees / sizeof($compass);
    return $compass[$index];
}

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to