That code won't work with that xml page
this
<?php
$xml = simplexml_load_file('http://www.quickweather.ca/cgi-bin/xml.cgi?key=6b8bfb1b0c5caea7c922f6cdea8acdb1&city=YYZ&tz=EST');
foreach ($xml->currentconditions as $item){
echo $item->cityname."<br>";
echo $item->observations."<br>";
echo $item->temperature."<br>";
}
?>
will output
Toronto, ON
Fog
-0.2
so you should be able to work out that the lines
echo $item->cityname"<br>";
equate to the lines
<cityname>Toronto, ON</cityname>
in the xml feed.