0

As you can see in the codes below

$html = file_get_contents('https://www.tgju.org/');

$start = stripos($html, 'id="l-crypto-bitcoin"');

$end = stripos($html, '</span>', $offset = $start);

$length = $end - $start;

$bitcoin = substr($html, $start, $length);

echo $bitcoin;

A website address is taken that displays the price of Bitcoin, But other than displaying the price, other additional things are also displayed.

How to remove all and only display the price?

itroz
  • 13
  • 4

0 Answers0