$stringa = substr_replace($stringa,"",-1);

nn l ho testato