function parrafin($string) { $cadena=$string; $cod=substr($cadena, 0, 40); return( $cod );
<? echo parrafin($publicar['ntitulo'])."..." ?>