SHARE
TWEET

PHP while Loops

dante25 Dec 9th, 2018 11 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PHP  while Loops
  2.  
  3.  
  4. Often when you write code, you want the same block of code to run over and over again in a row. Instead of adding several almost equal code-lines in a script, we can use loops to perform a task like this.
  5.  
  6. In PHP, we have the following looping statements:
  7.  
  8. while - loops through a block of code as long as the specified condition is true
  9. do...while - loops through a block of code once, and then repeats the loop as long as the specified condition is true
  10. for - loops through a block of code a specified number of times
  11. foreach - loops through a block of code for each element in an array
  12.  
  13. click the link to download it
  14.  
  15. http://www.earnmag.com/T6RUTPRh
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top