I found myself in a situation where I needed to remove duplicates from a comma delimited string urgently, and used the following bit of PHP:
//ex.) $string = '23,23,24,25,26'
$result = implode(',', array_unique(explode(',', $string)));
Knowledge Base is a repository for various notes, guides, and thoughts on a wide range of IT related topics. Read more...
Web development services by Say Web Solutions. Visit website.
Knowledge Base of whabash090 by Kyle Jones is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.