I try Simple HTML DOM Parser to get specific text from external website. Here is my code:
include('simple_html_dom.php');
$html = file_get_html('http://www.bca.co.id/id/biaya-limit/kurs_counter_bca/kurs_counter_bca_landing.jsp');
foreach ( $html->find('td',13) as $raw) {
echo $raw->plaintext;
}
So far, I get one line result:
HKD 1502.30 1470.40
HKD is the currency. 1502.30 is the sell rate and 1470.40 is the buy rate.
How to get 1502.30 value only and use it in another PHP files? I want this value can be used to create automatic currency rate conversion. Thanks.