note 51448 deleted from function.trim by hholzgra

From: Date: Thu, 02 Aug 2012 12:21:46 +0000
Subject: note 51448 deleted from function.trim by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189635@lists.php.net to get a copy of this message
Note Submitter: admin at semaster dot ru ---- Another recursive trim function for multi-dimensional arrays ( uses only trim function :) function array_trim($arr, $charlist=null){ foreach($arr as $key => $value){ if (is_array($value)) $result[$key] = array_trim($value, $charlist); else $result[$key] = trim($value, $charlist); } return $result; }

« previous php.notes (#189635) next »