php substr remove last 4 characters
snippet in php

php substr remove last 4 characters

user6026

echo substr($string, 0, -3);