Cryptocurrency Prices

Following Cryptocurrency Prices from: CoinGecko [insert_php] /* */ $coins = array( ‘btc’ => array( ‘href’ => “https://www.coingecko.com/en/price_charts/bitcoin/usd”, ‘name’ => “BTC price”, ‘src’ => “https://www.coingecko.com/en/widget_component/ticker/bitcoin/usd.jpg” ), ‘eth’ => array( ‘href’ => “https://www.coingecko.com/en/price_charts/ethereum/usd”, ‘name’ => “ETH price”, ‘src’ => “https://www.coingecko.com/en/widget_component/ticker/ethereum/usd.jpg” ), ‘ltc’ => array( ‘href’ => “https=://www.coingecko.com/en/price_charts/litecoin/usd”, ‘name’ => “LTC price”, ‘src’ => “https://www.coingecko.com/en/widget_component/ticker/litecoin/usd.jpg” ), ‘veri’ => array( ‘href’ => “https://www.coingecko.com/en/price_charts/veritaseum/usd”, ‘name’ => “VERI price”, ‘src’ => “https://www.coingecko.com/en/widget_component/ticker/veritaseum/usd.jpg” ), ‘ppt’ => array( ‘href’ => “https://www.coingecko.com/en/price_charts/populous/usd”, ‘name’ => “PPT price”, ‘src’ => “https://www.coingecko.com/en/widget_component/ticker/populous/usd.jpg” ) ); foreach ($coins as $coin) { $img = file_get_contents($coin[‘src’]); if ($img) { echo ‘'.$coin['name'].'‘; } else { $fix = str_replace(‘/usd.jpg’,”,$coin[‘src’]); echo ‘