Write a program using while loop in php?



Write a program using while loop in php?..

Answer / Raghavendra Singh

"Here is an example of a simple PHP program using a while loop:

```php
$num = 1;
while ($num <= 5) {
echo $num . '
';
$num++;
}
```"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How failures in execution are handled with include() and require() functions?

1 Answers  


What is php how it works?

1 Answers  


Explain what does the unlink() function means?

1 Answers  


What is asort php?

1 Answers  


Explain mysql_error().

1 Answers  


Explain about the data types in PHP?

1 Answers  


What is the difference between explode () and split () functions in php?

1 Answers  


Explain me soundex() and metaphone()?

1 Answers  


How is a session id generated?

1 Answers  


What is strcmp?

1 Answers  


What are different types of runtime errors in php?

1 Answers  


What is Different between Joomla And Magento?

1 Answers  


Categories