Sometimes, two cities (i.e. Portland, ME and Portland, OR) have the
same name. So, in any case where there might be ambiguity, consider
using the ICAO location code for your city. The FAA maintains a
list of codes for the USA at
https://pilotweb.nas.faa.gov/qryhtml/icao/USA.html
<?php
// Portland, OR
$w = new Weather($city = "KPDX");
// Portland, ME
$w = new Weather($city = "KPWM");
?>
To force pxWeather to ignore its cache, and retrieve data directly
from the source, you can call the constructor with the $force
variable set to true:
<?php
$w = new Weather($city = "Austin", $force = true);
?>