Write a program to print fibonacci series in Php using while loop

Write a program to print fibonacci series in php using while loop. This program will help you to find the number is Fibonacci. This is important step in every language to getting complex in understanding the concept with maths in programming

<?php 
$number = 0; 
$a = 0; 
$b = 1; 
echo "\n"; 
echo $a.' '.$b.' '; 
while ($number < 10 ) 
{ 
$c = $b + $a; 
echo $c.' '; 
$a = $b; 
$b = $c; 
$number = $number + 1; 
}
?> 

Output:

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