Skip to content

Instantly share code, notes, and snippets.

View udemethegrtman's full-sized avatar

Udeme Samuel udemethegrtman

View GitHub Profile
@udemethegrtman
udemethegrtman / Common-Currency.json
Created September 23, 2020 00:48 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@udemethegrtman
udemethegrtman / gist:b8f1f414d27dfc7e0332961f923e3ea6
Created July 17, 2019 04:15
Convert Number To Word For Nigerian Currency
function convertNumberToWordsForNigeria($number){
/*
SOURCE: https://gist.github.com/hay-wire/97486dba296cd78ac7ba
*/
//A function to convert numbers into Indian readable words with Cores, Lakhs and Thousands.
$words = array(
'0'=> '' ,'1'=> 'one' ,'2'=> 'two' ,'3' => 'three','4' => 'four','5' => 'five',
'6' => 'six','7' => 'seven','8' => 'eight','9' => 'nine','10' => 'ten',