ПРИМЕРНАЯ

$resultado = substr($valor,0,-1);
Difficult Dormouse