I need to delete the first 3 letters of a string and the last 3 letters of a string. I know I can use substr() to start at a certain character but if I need to strip both first and last characters i’m not sure if I can actually use this. Any suggestions?
Share
Pass a negative value as the
lengthargument (the 3rd argument) tosubstr(), like:So this:
Outputs: