eliminar ultimo caracter string php

Solutions on MaxInterview for eliminar ultimo caracter string php by the best coders in the world

showing results for - "eliminar ultimo caracter string php"
Henri
05 Oct 2016
1$mystring = 'number 1, number 2, number 3,';
2$myString = substr($myString, 0, -1);
3echo $myString;  // 'number 1, number 2, number 3'