I try to modify a sql file created by mysqldump to import it to a SQLite database. Here I have already asked how to do this and got the answer that I have to replace e.g. " " with a new line.
Well, my question on the mentioned answer is whether and how is it possible to put a real line break into a string with PHP.
Example: Input: "Nice sentence. Also a nice sentence."
Output: "Nice sentence.
Also a nice sentence."
// Note: $source is assigned with single quotes, which means that
// the
will not be interpolated
$source = 'Nice sentence.
Also a nice sentence.';
$destination = str_replace(array('', '
'), array("", "
"), $source);