DEV Community

Discussion on: My $646 mistake with PHP

Collapse
 
dgrigg profile image
Derrick Grigg

Could you not have changed this one line

$new_results Http::get('maps.googleapis.com ...

to

$response = Http::get('maps.googleapis.com ...

so the loop would work correctly by referencing the latest result set?