I did a search and did not find a code to leave only the first 4 characters of a string with a smaller size.
I tried this code:
$str = "Códigos";
$str = strtolower($str);
Only I need to leave are the first 4 numbers smaller than the others. What I always find are related to strings .