Home > Article > Backend Development > Can php separate arrays by newlines?
PHP can use spaces to separate strings into arrays.
<code class="php">$str = "Hello world. I love php!"; $arr = explode(" ", $str); </code>
How to separate by newline character?