PHP Tutorial PHP Statements

Introduction

  1. PHP Code Blocks
  2. PHP Comments
  3. PHP if
  4. PHP if else
  5. PHP switch
  6. PHP foreach
  7. PHP while loop
  8. PHP do while loop
  9. PHP for loop
  10. PHP break
  11. PHP continue
  12. PHP Mixed-Mode Processing
  13. PHP include/require

Example

  1. Break multiple level in PHP
  2. Break out of a for loop in PHP
  3. Break out of a while loop in PHP
  4. Check day of the week in if statement in PHP
  5. Continue a for loop in PHP
  6. Cover all cases with if-elseif-else in PHP
  7. Cover all cases with switch in PHP
  8. Create three Simple statements in PHP
  9. Output counter value in for loop in PHP
  10. Switch with fall through in PHP
  11. Use continue statement to get ten random numbers,each greater than the next in PHP
  12. Use do while loop to calculate power in PHP
  13. Use do while to print day name in PHP
  14. Use for loop to output html tags in PHP
  15. Use foreach to loop associative array and get key and value in PHP
  16. Use if-elseif-else statement in PHP
  17. Use integer to control a while loop in PHP
  18. Use single line comments in PHP
  19. Use switch statement to select one of many blocks of code to be executed in PHP
  20. Use while to print day namee in PHP

Mix HTML

  1. Assign values to variable and use them later in the html in PHP
  2. Mix PHP source code with HTML in PHP
  3. Mix multiple code blocks in html in PHP
  4. Mix php code with html code in PHP
  5. Output data from php code and add style in PHP
  6. Use shell style comments in PHP
  7. Use short circuit syntax to output message in PHP
  8. Use short php tags marker in PHP
  9. Use the backtick operator in PHP
  10. Use the silence operator in PHP




















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition