explode new line php code example
Example 1: php explode new line
$values = preg_split('/\r\n|\r|\n/', $myString);
Example 2: explode in php
$str = 'one two three four';
$numbers4 = explode(' ',$str);
$values = preg_split('/\r\n|\r|\n/', $myString);
$str = 'one two three four';
$numbers4 = explode(' ',$str);