Create yahoo weather api using php

This code extracts the weather information from Yahoo API as per the request sent to it via a web API call and returns an XML.