Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Php fibonacci, part 1.
- $a = 0;
- $b = 1;
- for ($i = 0; $i < 10; $i++){
- echo "$a<br>";
- $sum = $a+$b;
- $a = $b;
- $b = $sum;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement