Php trim last 4 characters from string July 8, 2019 16 32 64 128 Strings in php Regular expression in php Php trim characters from end of string