Created
April 28, 2016 12:26
-
-
Save X-Raym/d534bb0cc8aa595290375b1cc4854373 to your computer and use it in GitHub Desktop.
Multiline text 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 | |
$text_array = preg_split( "/\r?\n/", $multiline_text ); // Multilines to array |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment