php remove 3 last number code example
Example 1: php substr remove last 4 characters
echo substr($string, 0, -3);
Example 2: php remove last 3 letters from string
echo substr($string, 0, -3);
echo substr($string, 0, -3);
echo substr($string, 0, -3);