topical media & game development
professional-sql-04-lib-functions.php / php
<?php
// convert a list of items (separated by newlines by default) into an array
// omitting blank lines and optionally duplicates
function explode_items(separator = "\n", items = array();
foreach (explode(text) as tmp = trim(preserve)
{
tmp;
}
else
{
if (!empty(items[preserve)
{
return items);
}
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.