I need to transform ordinary numbers to Roman numerals with php and I have this code:
There is an illegal offset issue.
Replace
$o=1:$b].$s);
with
$o=1:$b >0 ? $b : 0].$s);