function pPie::arrayReverse

5.x pPie.class.php pPie::arrayReverse($Plots)
1 call to pPie::arrayReverse()
pPie::draw3DRing in inc/pchart/pchart/class/pPie.class.php

File

inc/pchart/pchart/class/pPie.class.php, line 1465

Class

pPie

Code

function arrayReverse($Plots) 
 {
  $Result = array();

  for ($i = count($Plots) -1; $i >= 0; $i = $i -2) 
   {
    $Result [] = $Plots [$i -1];
    $Result [] = $Plots [$i];
  }

  return ($Result);
}