Created
June 9, 2016 07:33
-
-
Save Rachind/cc1b2e48ddf8821ff4a5d137f701108e to your computer and use it in GitHub Desktop.
Snippet nl2li
This file contains hidden or 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 | |
$list = explode ("\n",$input); | |
foreach($list as $v) echo '<li>'.trim($v).'</li>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment