psAryTrim() Trim Array
Description:
This is used to trim every line on an array, if line is empty, then item is unset
Usage:
$ary = psAryTrim($myAry);
Example:
Code:
function psAryTrim($wAry) { foreach ($wAry as $key=>$val) { $wAry[$key] = trim($val); if ($wAry[$key] == "") { unset($wAry[$key]); } } return $wAry; }
// just a wrapper, function name is defunc and will be removed function psTrimAry($wAry) { return psAryTrim($wAry); }
Changlelog:
10-06-2016 v2.11.1 function name changed from psTrimAry() to psAryTrim(), wrapper provided
|
|