1111
11
222
222
33333
4444
1111
22
<textarea name="lines" cols="70" rows="30"> <?php $a=array_unique(explode("\n", $_POST['lines'])); #natsort($a); echo implode("\n",$a); ?> </textarea>
result:
111111
1111
11
222
33333
4444
22
11378 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
<textarea name="lines" cols="70" rows="30"> <?php $a=array_unique(explode("\n", $_POST['lines'])); #natsort($a); echo implode("\n",$a); ?> </textarea>
You need to create an account or log in to post comments to this site.