Here are some fibs for you. Each is added to the one before to make the one after:
$first
$second
";
// make a variable to increment for each iteration of the loop
$inc = 1;
// Start the loop, increment once first
$inc++;
while ($inc < $count) {
$final = $first + $second;
echo "$final
";
$first = $second;
$second = $final;
$inc++;
}
}
echo "
Done."; } // end of "if we got a POST" else { ?>
This is a Fibonacci Number Generator done in PHP.