Course Content
Introduction
PHP is an object-oriented scripting programming language that allows web developers to create dynamic and interactive web pages. PHP stands for Hypertext Preprocessor (PHP).
0/14
Control Statement
A control statement is a statement that determines whether other statements will be executed.
0/7
    About Lesson

    The do-while loop performs a segment of code repeatedly until the condition is FALSE. The do-while loop is confirmed to run at least once.

     

    Syntax:

    do {
      	code to be executed;
    } while (condition is true);

     

    Example:
     

    $num = 1;
    do {
      	echo "The number is: $num 
    ";
      	$num++;
    } while($num <= 5);