Код: Выделить всё
$string = "
put returns between paragraphs
for linebreak add 2 spaces at end
";
I've this regex, it can catch all of them, the problem is I don't know with which function should I use it.
Код: Выделить всё
/\r\n|\r|\n/
Код: Выделить всё
$stringКод: Выделить всё
$string = "put returns between paragraphs for linebreak add 2 spaces at end ";
Источник: https://stackoverflow.com/questions/376 ... mpty-space
Мобильная версия