PHP has many nice functions for handling arrays already, but I found myself needing some extra arraythmetic (ha!), and here they are for you to use as freely as you choose! array_clean /** * Method: array_clean * Purpose: Trims whitespace and slashes from every element in an array, and * removes any elements containing only whitespaces. * @param array - the array to clean * @param maintain_index - true to maintain index association, false otherwise * @return a 'clean' array without whit... Read more.