How to Separate Positive and Negative values from an Array in PHP?
Look at the Below array. It got both Negative and Positive values together.
$arr = array( 3,5,-1,-9,2,-6,7 );
Now if anybody tells you to separate all negative values and store in an array and positive values in one more array?. …