Login   Register  
PHP Classes
elePHPant
Icontem

use PHP Weather class to get row data - PHP Weather package blog

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All package blogs All package blogs   PHP Weather PHP Weather   Blog PHP Weather package blog   RSS 1.0 feed RSS 2.0 feed   Blog use PHP Weather class...  
  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author: Samy Massoud

Posted on:

Package: PHP Weather

Get raw data from PHP weather class to use within your code





A great feature within PHP Weather class , you can get all weather data as array .

This will give you option to implement weather info inside your code with the way that fits your needs better .

To get weather as raw data just call set_output method and pass keyword row to it.

For example

 $weather = new weather();
 $weather->set_city('maldives');
 $weather = set_output ('row');
 $raw_data = $weather->get_weather();

Now all weather data inside  $raw_data variable.
You can display any info you want with any html



You need to be a registered user or login to post a comment

Login Immediately with your account on:

Facebook ConnectGmail or other Google Account
Hotmail or Microsoft Windows LiveStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.




  Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  
  All package blogs All package blogs   PHP Weather PHP Weather   Blog PHP Weather package blog   RSS 1.0 feed RSS 2.0 feed   Blog use PHP Weather class...