I have a longitude and latitude as a string in PHP like below
49.648881 -103.575312
And I want to take that and look in an array of values
There is no quick and easy way to do that. You have to iterate through all elements and calculate distance between them and starting point, save the result and repeat, saving the result only if it is lower then previous.