Convert currency to Bitcoin in php

About Bitcoin

Bitcoin is both a cryptocurrency and an electronic payment system invented by an unidentified programmer, or group of programmers, under the name of Satoshi Nakamoto. Bitcoin was introduced on 31 October 2008 to a cryptography mailing list, and released as open-source software in 2009. The identity of Nakamoto remains unknown, though many have claimed to know it. The system is peer-to-peer, and transactions take place between users directly, without an intermediary. These transactions are verified by network nodes and recorded in a public distributed ledger called the blockchain, which uses bitcoin as its unit of account. Since the system works without a central repository or single administrator, the U.S. Treasury categorizes bitcoin as a decentralized virtual currency.

In this post you will learn how to convert any currency to Bitcoin currency. We will use php method for currency cunversion.

Php Code to get Bitcoin currency

Run above code in a php file this will provide the currency in bitcoin format.

List of supported bitcoin currencies.

1) USD
2) GBP
3) JPY
4) CAD
5) CNY
6) EUR
7) RUB
8) KRW
9) TWD
10) THB
11) ISK
12) CHF
13) SEK
14) SGD
15) AUD
16) DKK
17) CLP
18) NZD
19) PLN
20) BRL

This may not be complete list of all countries. It may change or different from actual.