Source Code:
(back to article)
<?php $string = "This is a string\nwith new lines\n"; $string = str_replace("\n", " ", $string); echo $string; // Outputs: "This is a string with new lines "
Result:
Report an issue