Find Minus Value From Array

Find Minus Value From Array Script is use to filter negative elements from entire a array list.

Demo :



Array List :
 

Example :

Just type a number to Array List like this 10 , -10 ,20 ,30 ,-100 .Now will be to store the value for array then click Filter button the output will be display like this -10 , -100.

if you need to find minus value from array following code useful to you.


<?php
   function isNegative($value)
   {
      if($value < 0)
      {
      return $value.'<br>';
      }
  }

   $series = array(-10,21,43,-6,5,1,84,1,-32);
   for($i=0;$i<count($series);$i++)
   {
      echo isNegative($series[$i]);
   }
?>

In the above entire array list has been stored in $series variable.isNegative() function is used to split negative value from a array list.

Free Download Script :

If you need to find minus value from array script click and download from following link.

Download




Content