function pData::stripVOID

5.x pData.class.php pData::stripVOID($Values)
8 calls to pData::stripVOID()
pData::addPoints in inc/pchart/pchart/class/pData.class.php
pData::getGeometricMean in inc/pchart/pchart/class/pData.class.php
pData::getHarmonicMean in inc/pchart/pchart/class/pData.class.php
pData::getSerieAverage in inc/pchart/pchart/class/pData.class.php
pData::getSerieMedian in inc/pchart/pchart/class/pData.class.php

... See full list

File

inc/pchart/pchart/class/pData.class.php, line 109

Class

pData

Code

function stripVOID($Values) 
 {
  if (!is_array($Values)) {
    return (array());
  }
  $Result = array();
  foreach ($Values as $Key => $Value) {
    if ($Value != VOID) {
      $Result [] = $Value;
    }
  }
  return ($Result);
}