PHP Function to shorten string to exactly 3 characters

Solution:1

$fr_month = substr($fr_month,0,3);

The “0,3” means an offset of 0 characters, and a length of 3.