Ver Mensaje Individual
  #2 (permalink)  
Antiguo 09/04/2009, 09:52
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 15 años, 9 meses
Puntos: 416
Respuesta: Filtrar saltos de linea, no funciona.

Mejor usa substr_count

Un ejemplito:
Código PHP:
<?php

$string 
"This is a text\nWith newlines\nOhYeah!\n\nHahai";
echo 
substr_count($string"\n");

?>