From: kink Date: Mon, 7 Aug 2006 18:47:59 +0000 (+0000) Subject: drop very old and very obsolete function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5b348150f0b45ffc5659c621f521c5a8ca4150f6;p=squirrelmail.git drop very old and very obsolete function git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11483 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/strings.php b/functions/strings.php index 650b9c5b..b804a6f0 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -780,29 +780,6 @@ function quoteimap($str) { return preg_replace("/([\"\\\\])/", "\\\\$1", $str); } -/** - * Trims array - * - * Trims every element in the array, ie. remove the first char of each element - * @param array $array the array to trim - * @since 1.2.0 - */ -function TrimArray(&$array) { - foreach ($array as $k => $v) { - global $$k; - if (is_array($$k)) { - foreach ($$k as $k2 => $v2) { - $$k[$k2] = substr($v2, 1); - } - } else { - $$k = substr($v, 1); - } - - /* Re-assign back to array. */ - $array[$k] = $$k; - } -} - /** * Create compose link *