Which of the following is a valid way to start a for loop in PHP that would print out the numbers 0 through 4?

Select one:

  • a. for($i < 5; $i = 0;)
  • b. for($i = 0; $i < 5; $i++)
  • c. for($i < 5;)
  • d. for( $i < 5; $i = 0; $i++)

The correct answer is: for($i = 0; $i < 5; $i++)

Related Posts

0 Comments

12345

    00