0

I have this lines so i need delete blank line:

Fichier TESTTT 

testt have that

I've used str_replace('\r\n','',$text); but always I have this line blank Thanks in advance

Albzi
  • 15,201
  • 5
  • 43
  • 61
blood
  • 35
  • 3

1 Answers1

0

try this

preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string);
paranoid
  • 6,143
  • 18
  • 45
  • 78