trying to transfer one array with a combination of positive and negative numbers to a new array- but only where the elements are positive.
This is what I have so far:
try:
$param = array(2, 3, 4, -2, -3, -5); $positive = array_filter($param, function ($v) { return $v > 0; }); print_r($positive);
http://codepad.viper-7.com/eKj7pF