h =$max){$chaine=substr($chaine,0,$max);} echo $chaine ; ?>