Last active
February 26, 2016 02:57
-
-
Save forecho/c3f95d6c8c8a45f5acae to your computer and use it in GitHub Desktop.
textarea 换行分割
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 | |
$code = "12243324324234234 | |
23123123123123123 | |
37489347589347895"; | |
$newCode = explode("\r\n", $code); | |
print_r($newCode); | |
// Array ( [0] => 12243324324234234 [1] => 23123123123123123 [2] => 37489347589347895 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment