How to print fibonacci series in php

0 1 1 2 3 5 8 13 21 34 55 89 144

Important interview questions in PHP

<?php
$a=0;
$b=1;
$c=0;
echo $a.” “;
echo $b.” “;
while ($c<=10) {
# code…
$d = $a+$b;
echo $d.” “;
$a=$b;
$b=$d;
$c++;
}
?>

        OUTPUT:-  0 1 1 2 3 5 8 13 21 34 55 89 144 

Don’t compare yourself with anyone in this world…if you do so, you are insulting yourself.

How to solve fibonacci series in php

Bill Gates

Co-founded the Microsoft Corporation

People don't care about what you say, they care about what you build.

How to solve fibonacci series in php

Mark Zuckerberg

CEO of Facebook

As a leader, It is important to not just see your own success, but focus on the success of others.

How to solve fibonacci series in php

Sundar Pichai

CEO of Google