Skip to content

Instantly share code, notes, and snippets.

View umnibot's full-sized avatar

A Fan umnibot

View GitHub Profile
@umnibot
umnibot / number_to_words.php
Created July 11, 2022 19:35 — forked from mupkoo/number_to_words.php
PHP script to convert numbers to words in Bulgarian
<?php
// Taken from the internet
// Slighly modified
function _n($single, $plural, $number) {
if ((int) $number == 1) {
return $single;
} else {
return $plural;
}
}