<?php
$Ids = array(1, 2, 3, 4);
for ($i = 0; $i < ($result-1) ; $i++) {
echo "\$Pair [".$i."] = ".$Ids[$i]. "+" .$Ids[$i+1];
echo "\n";
}
PD9waHAKCiRJZHMgPSBhcnJheSgxLCAyLCAzLCA0KTsKJHJlc3VsdCA9IGNvdW50KCRJZHMpOwoKZm9yICgkaSA9IDA7ICRpIDwgKCRyZXN1bHQtMSkgOyAkaSsrKSB7CiAgIGVjaG8gIlwkUGFpciBbIi4kaS4iXSA9ICIuJElkc1skaV0uICIrIiAuJElkc1skaSsxXTsKICAgZWNobyAiXG4iOwp9