If I'm not wrong, is this what you mean?
$url='https://bitpay.com/api/rates';
$json=json_decode( file_get_contents( $url ) );
$dollar=$btc=0;
foreach( $json as $obj ){
if( $obj->code=='USD' )$btc=$obj->rate;
}
echo "1 bitcoin=\$" .
$btc . "USD<br />"; $dollar=1 / $btc;
echo "10 dollars = " . round( $dollar * 10,8 )."BTC";
The Returns:
1 bitcoin=$11485USD
10 dollars = 0.0008707BTC
The best way to become a Blockchain concept is by getting courses in blockchain technology.