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