PHP usuń ostatni znak w ciągu
//Remove the last character using substr
$string = substr($string, 0, -1);
Kasmin Nicko
//Remove the last character using substr
$string = substr($string, 0, -1);
echo substr($string, 0, -3);
echo substr($string, 0, -3);