/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
class WeatherService{
public function WeatherService(){
//some initialization...
}
public function getWeatherInfo($city){
return $res;
}
public function convertFrToC($val){
return (($val+40)*5/9)-40;
}
}
$obj = new WeatherService;
$obj->getWeatherInfo("haifa");
Comments
 Subscribe to comments
                    Subscribe to comments
                
                