I have seen so many functions but it happens to work only for MySQL or Postgresql. I want the equivalent logic for PHP. I\'m doing some comparisons, like I have this data th
You should use Haversine formula to compute distance between two points. You have a PHP version here.
Then just check if distance < 100000.
distance < 100000