Convert an integer to Roman-Numeral
<?php
function romanNumerals($num){
$n = intval($num);
$res = ”;
/*** roman_numerals array ***/
$roman_numerals = array(
‘M’ => 1000,
‘CM’ => 900,
‘D’ => 500,
‘CD’ => 400,
Comments are closed.