Return to Snippet

Revision: 15984
at July 22, 2009 11:13 by jpsirois


Initial Code
/**
 * Trims a entire array recursivly.
 * 
 * @author      Jonas John
 * @version     0.2
 * @link        http://www.jonasjohn.de/snippets/php/trim-array.htm
 * @param       array      $Input      Input array
 */
function TrimArray($Input){
 	if (!is_array($Input))
		return trim($Input);

	return array_map('TrimArray', $Input);
}

Initial URL
http://www.jonasjohn.de/snippets/php/trim-array.htm

Initial Description

                                

Initial Title
PHP Shortest Trim Array recursivly

Initial Tags
array

Initial Language
PHP