str_replace with line break?
php
Solution
Use double quotes, otherwise `\n` is not parsed. Documentation
Problem
I'm trying to replace a regular expression with a line break. Right now I'm trying this which doesn't work: ``` $string = str_replace(';', '\n', $string); ``` I need to make sure that semi colons are exactly the same as '\n' line breaks, how can I get this done?