Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $city = $_GET["city"];
- $info = json_decode(file_get_contents("https://belarusbank.by/api/kursExchange?city=" . urlencode($city)), true);
- echo $info[0]["USD_in"] . "," . $info[0]["USD_out"] . "," . $info[0]["EUR_in"] . "," . $info[0]["EUR_out"] . "," . $info[0]["RUB_in"] . "," . $info[0]["RUB_out"]
- ?>
Advertisement
Add Comment
Please, Sign In to add comment