I think there may be an error in the example code
$this->city = trim($location[0]); $this->state = trim($location[1]);
should read
$row->city = trim($location[0]); $row->state = trim($location[1]);
More information about text formats
I think there may be an error
I think there may be an error in the example code
$this->city = trim($location[0]);
$this->state = trim($location[1]);
should read
$row->city = trim($location[0]);
$row->state = trim($location[1]);