private function numberToNumerals($number, array $numerals)
    {
        $string = '';

        while ($number > 0) {
            foreach ($numerals as $n => $t) {
                if ($number >= $n) {
                    $string .= $t;
                    $number -= $n;
                    break;
                }
            }
        }

        return $string;
    }
private function numberToNumerals($number, array $numerals)
    {
        $string = '';

        while ($number > 0) {
            foreach ($numerals as $n => $t) {
                if ($number >= $n) {
                    $string .= $t;
                    $number -= $n;
                    break;
                }
            }
        }

        return $string;
    }
private function numberToNumerals ( $ number , array $ numerals ) { $ string = '' ; while ( $ number > 0 ) { foreach ( $ numerals as $ n => $ t ) { if ( $ number >= $ n ) { $ string .= $ t ; $ number -= $ n ; break ; } } } return $ string ; }
Convert a number into a string, in the style of roman numerals

@param int      $number
@param string[] $numerals

@return string
Convert a number into a string in the style of roman numerals