PHP Roman Numerals is a library in order to convert arabic and roman numerals.
The deromanize function converts a roman numeral string to its corresponding arabic numeral integer.
deromanize(string)
- string: Required. The roman numeral string
Returns a integer which is the corresponding arabic number of "MMXVII":
$num = deromanize("MMXVII");
The result of num will be:
2017
The romanize method converts a arabic numeral integer to its corresponding roman numeral string.
romanize(integer)
- integer: Required. The arabic numeral integer
Returns a string which is the corresponding arabic number of 2017:
$num = romanize(2017);
The result of num will be:
MMXVII