Skip to content
Newer
Older
100644 13 lines (11 sloc) 275 Bytes
79cedad @spf13 initial import
authored Oct 7, 2011
1 <?php
2
3 $s->trim_array = function($array) {
4 foreach ($array as $value) {
5 if (is_string($value)) {
6 $newarray[]=trim($value);
7 } else {
8 $newarray[] = $value;
9 }
10 }
11 return $newarray;
12 };
Something went wrong with that request. Please try again.