git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11483
7612ce4b-ef26-0410-bec9-
ea0150e637f0
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
*