eliminar ultimo caracter string php
$mystring = 'number 1, number 2, number 3,';
$myString = substr($myString, 0, -1);
echo $myString; // 'number 1, number 2, number 3'
Turlin