como quitar los ultimos caracteres en php code example
Example: 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'
$mystring = 'number 1, number 2, number 3,';
$myString = substr($myString, 0, -1);
echo $myString; // 'number 1, number 2, number 3'