shouldInvert(10, $col); $expected = ($col % 3 === 0); $match = $shouldInvert === $expected ? "āœ…" : "āŒ"; echo sprintf( " Col %2d: mod=%d, shouldInvert=%s, expected=%s %s\n", $col, $col % 3, $shouldInvert ? 'true ' : 'false', $expected ? 'true ' : 'false', $match ); } echo "\nāœ… Mask Pattern 2 logic is correct!\n";