You are here

function pImage::reversePlots in Visitors 7

Same name and namespace in other branches
  1. 7.2 pChart/class/pImage.class.php \pImage::reversePlots()

File

pChart/class/pImage.class.php, line 446

Class

pImage

Code

function reversePlots($Plots) {
  $Result = "";
  for ($i = count($Plots) - 2; $i >= 0; $i = $i - 2) {
    $Result[] = $Plots[$i];
    $Result[] = $Plots[$i + 1];
  }
  return $Result;
}