Created
December 28, 2020 14:44
-
-
Save PechenkiUA/1d350d106849a0a4fa4605c61a4bceac to your computer and use it in GitHub Desktop.
Parse string new line to Array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$str = '/ru/rensoria62 | |
/ru/rubi102 | |
/ru/milton86 | |
/ru/sorrento96 | |
/ru/samanta164 | |
/ru/citywood97 | |
/ru/casablanca249 | |
/ru/finwood236 | |
/ru/moris163 | |
/ru/otis177'; | |
$skuList = preg_split("/\\r\\n|\\r|\\n/", $str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment