This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$currencies = array('code' => | |
array('code' =>'AFN' , 'name' => 'Afghani', 'symbol' => '؋' ), | |
array('code' =>'ALL' , 'name' => 'Lek', 'symbol' => 'Lek' ), | |
array('code' =>'ANG' , 'name' => 'Netherlands Antillian Guilder', 'symbol' => 'ƒ' ), | |
array('code' =>'ARS' , 'name' => 'Argentine Peso', 'symbol' => '$' ), | |
array('code' =>'AUD' , 'name' => 'Australian Dollar', 'symbol' => '$' ), | |
array('code' =>'AWG' , 'name' => 'Aruban Guilder', 'symbol' => 'ƒ' ), | |
array('code' =>'AZN' , 'name' => 'Azerbaijanian Manat', 'symbol' => 'ман' ), | |
array('code' =>'BAM' , 'name' => 'Convertible Marks', 'symbol' => 'KM' ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*############################# | |
* Developer: Mohammad Sharaf Ali | |
* Designation: Web Developer | |
* Version: 2.0 | |
* | |
* Changes from Version 1.0: | |
* - Updated to use a new API endpoint that returns JSON data instead of plain text | |
* - Replaced file_get_contents with cURL for improved error handling and performance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
function xrange($start, $end, $step = 1) { | |
for ($i = $start; $i < $end; $i += $step) { | |
yield $i; | |
} | |
} |