Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
ActionScript 3
AS3 Trim a Comma Delimited String (e.g. a list of comma separated keywords entered by a user)
This function trims a string and removes empty entries in a comma delimited list, removes extra commas from the beginning and end and also remove extra space characters between words.
1
1130
posted 14 years ago by adrianparr
I needed to trim a simple numerical array that might have duplicate values into an array with no duplicates. I came up with this before finding array_unique(). D\'oh.
0
891
posted 14 years ago by beneberle
This PHP code snippet searches a value in an array. Depending on use, one or all matching values and their belonged keys are removed.
3
795
posted 14 years ago by DADU
have it as bookmark - clicking on it will validate the current page
1
561
posted 14 years ago by silviud
Thankfully, Sjoerd Visscher mentioned an interesting technique that could be used to force IE to use the specified CSS styling. Specifically, once you create a new DOM element (of the same name as the one in the document) all styling is applied. [.....
0
835
posted 14 years ago by stephcode
This script let you back up your servers at once from a central backup server. First you must copy the central server ssh public key into the servers to backup (without password). After that you can install this script with a cron.
0
688
posted 14 years ago by eusonlito
Script to backup all MySQL databases and delete copies after X days
1
714
posted 14 years ago by eusonlito