note 88505 deleted from function.trim by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 12:29:28 +0000 |
| Subject: | note 88505 deleted from function.trim by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189663@lists.php.net to get a copy of this message | ||
Note Submitter: dead dot screamer at seznam dot cz
----
some of "trim array" functions
this trim strings, arrays and objects:
<?php
function trimA($str, $set=null)
{
if(is_Array($str) || is_Object($str))
foreach($str as &$s)
$s=trimA($s,$set);
elseif($set===null)$str=trim($str);
else $str=trim($str,$set);
return $str;
}
?>