Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $cidade = $_GET [ 'cidade' ] ;
- $url = "http://www.previsaodotempo.net.br/brasil/$cidade/" ;
- $dados = file_get_contents ( $url ) ;
- $array = explode ( "Tempo agora:", $dados ) ;
- $clima = explode ( "\"", $array [ 1 ] ) ;
- echo $clima [ 0 ] ;
- ?>
Add Comment
Please, Sign In to add comment