Usa preg_replace() specificando il parametro "limit".
about me stackoverflow profile
Regole del Forum