/* - function trim_array() -
*
* A function for quicly triming all variables in an array
*
*/
function trim_array($value)
{
foreach($value as $name => $item) { // Walk's trou the array
if(is_array($item)) { // If the variable is an array:
$tmp[$name] = trim_array($item); // - We need to trim that one first
} else { // Else:
$tmp[$name] = trim($item); // - Trims the variable
}
}
return $tmp; // Return the trimed versjon of the array
}