grazie a tutti
anche io ho risolto col santo substring
ma davvero non esiste una funzione trunc in php???assurdo