include ("../../configuracion.php"); include ("../../admin/includes/conexion.inc.php"); /* INICIO CORTAR CADENA */ function truncarNoticia($string, $limit, $break, $pad) { if(strlen($string) <= $limit) return $string; if(false !== ($breakpoint = strpos($string, $break, $limit))){ if($breakpoint < strlen($string)-1) { $string = substr($string, 0, $breakpoint) . $pad; } } return $string; } /* FIN CORTAR CADENA */ ?>