Hello I have this example
I need to delete the last comma
<?php
$numeri = ['I', 'II', 'III', 'IV', 'V'];
$size = count($numeri);
for ($i = $size - 1; $i >= 0; $i--) {
$a = $numeri[$i] . ',';
echo $a;
}
?>
V, IV, III , II, I,
But even if I use substr or substrl_replace it deletes all the commas.