this is the simple php for loop,
<?php
for ($a=1; $a<=10; $a++)
echo $a . ", ";
?>
the output of this program is
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
i want to remove ',' from the last value
i want the output should be,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
the last comma should be replaced by a full stop, how can i do this ??