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 fi
Pass a negative value as the length argument (the 3rd argument) to substr(), like:
length
$result = substr($string, 3, -3);
So this:
Outputs:
n Bri