Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/10/2010, 10:11
gamau6
 
Fecha de Ingreso: octubre-2010
Mensajes: 156
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Limitar caracteres con php

Sigue sin mostrar nada de nada tambien intente con ese codigo

function introtext($text) {

if (strlen($text) > 40) {
$pos = strpos($text, ' ', "40");
if ((!$pos) || ($pos > 40)) {
$pos = 40;
}
$text = substr($text, 0, $pos + 1) . " ...";
return $text;

}else{
return $text;
}

}

Solo no muestra cuando tiene etiquetas html el texto