Ola pessoal.
Como posso pegar a cotação do dólar dessa pagina:
http://www.bcb.gov.b...taxas/taxas.htm
A taxa de venda...
Obrigado.
Pegar Cotacao Do Dolar De Uma Pagina.
Started By umbu, 03/01/2006, 07:58
1 reply to this topic
#1
Posted 03/01/2006, 07:58
#2
Posted 03/01/2006, 08:17
Serve isto ?
<?php function getBCBQuotes() { $contents = file_get_contents('http://www.bcb.gov.br/htms/infecon/taxas/taxas.htm'); preg_match_all('/[0-9]*,[0-9]{2,4}/', $contents, $temp_quotes); list($quotes['compra'], $quotes['venda']) = $temp_quotes[0]; return $quotes; } $BCBQuotes = getBCBQuotes(); print 'Venda: ' . $BCBQuotes['venda']; ?>[]’s Até mais
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)