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
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
try this
preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $string);