How to remove new line from string php?
Using The removeNewline() function and remove new lines from string and replace with one empty space.
1. Code:
2. Example:
Input:
$str = "Soltuts.com is providing PHP tutorials";
Output:
Soltuts.com is providing PHP tutorials