Find Point in polygon PHP

This is a function i converted from another language into PHP: $vertices_x = array(37.628134, 37.629867, 37.62324, 37.622424); // x-coordinates of the vertices of the polygon $vertices_y = array(-77.458334,-77.449021,-77.445416,-77.457819); // y-coordinates of the vertices of the polygon $points_polygon = count($vertices_x) – 1; // number vertices – zero-based array $longitude_x = $_GET[“longitude”]; // x-coordinate of the point … Read more