how explode add new line in php code example Example: php explode new line $values = preg_split('/\r\n|\r|\n/', $myString);