advent.of.code.challenge.two.php
            
$increasedCounter = 0;
$previousSum = 999999;
$previousNumber = 192;
$previousNumberByTwo = 188;

foreach ( $array as $number ) {
    $sum = $number + $previousNumber + $previousNumberByTwo;
    if( $sum > $previousSum ) {
        $increasedCounter++;
    }
    $previousSum = $sum;
    $previousNumberByTwo = $previousNumber;
    $previousNumber = $number;
    
}
            
        

Considering every single measurement isn't as useful as you expected: there's just too much noise in the data.

Instead, consider sums of a three-measurement sliding window.

Your goal now is to count the number of times the sum of measurements in this sliding window increases from the previous sum.

Puzzle Data

Consider sums of a three-measurement sliding window. How many sums are larger than the previous sum?