MCQs > IT & Programming > PHP > Which loop displays all numbers from 1 to 10 inclusive?

PHP MCQs

Which loop displays all numbers from 1 to 10 inclusive?

Answer

Correct Answer: $i = 0; while ($i < 10) { echo ++$i . '
'; }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it