 
			
				27/04/2007, 23:21
			
			
			     |  
        |     |    |    Fecha de Ingreso: enero-2002  Ubicación: Ontario,Toronto [Canada]  
						Mensajes: 2.017
					  Antigüedad: 23 años, 9 meses Puntos: 6     |        |  
  |      Re: Sale de Cuadro        hola seri algo asi 
function corta($text) 
   { 
   $nr = 100; //cambiar por el numero de caracteres que deseas cortar 
       $mitexto=explode(" ",trim($text)); 
       $textonuevo=array(); 
       foreach($mitexto as $k=>$txt) 
       { 
           if (strlen($txt)>$nr) 
           { 
               $txt=wordwrap($txt, $nr, " ", 1); 
           } 
           $textonuevo[]=$txt; 
       } 
       return implode(" ",$textonuevo); 
   } 
/// para llamrlo 
echo corta('tutextolargotutextolargotutextolargotutexto  largotutextolargotutextolargotutextolargotutextola  rgotutextolargotutextolargotutextolargotutextolarg  otutextolargotutextolargo');     
				__________________  Un Saludo   www.tutores.org
Asp  | Php | Javascript | Perl | Coldfusion | Flash | +- 2000 codigos            |