Hello World!
This code generates the first 10 fibonacci numbers...
$fib1 = 1;
$fib2 = 1;
print $fib1;
for ($i = 0; $i <= 8; $i++) {
print $fib2;
$temp = $fib1;
$fib1 = $fib2;
$fib2 = $fib2 + $temp;
}
And here is the result...
1
1
2
3
5
8
13
21
34
55