Find Plus Value From Array

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

Demo :



Array List :
 

Example :

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

if you need to Find Plus Value From Array Script following code useful to you.


<?php
   function isPositive($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 isPositive($series[$i]);
   }
?>

In the above entire array list has store in $series variable.isPositive() function is used to split positive value from array list.

Free Download Script :

If you need to Find Plus Value From Array Script click and download from following link.

Download




Content