note 105339 added to function.trim

From: Date: Wed, 10 Aug 2011 12:22:56 +0000
Subject: note 105339 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-182391@lists.php.net to get a copy of this message
Combined filter and trim array. function _trim_value(&$value) { if (is_string($value)) $value = trim($value); } function array_filter_and_trim($arr) { array_walk($arr, '_trim_value'); return array_filter($arr); } ---- Server IP: 69.147.83.197 Probable Submitter: 92.232.71.252 ---- Manual Page -- http://www.php.net/manual/en/function.trim.php Edit -- https://master.php.net/note/edit/105339 Del: integrated -- https://master.php.net/note/delete/105339/integrated Del: useless -- https://master.php.net/note/delete/105339/useless Del: bad code -- https://master.php.net/note/delete/105339/bad+code Del: spam -- https://master.php.net/note/delete/105339/spam Del: non-english -- https://master.php.net/note/delete/105339/non-english Del: in docs -- https://master.php.net/note/delete/105339/in+docs Del: other reasons-- https://master.php.net/note/delete/105339 Reject -- https://master.php.net/note/reject/105339 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#182391) next »