Get the latest creative news from FooBar about art, design and business.
By signing up, you agree to the our terms and our Privacy Policy agreement.
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);
You have not completed all required lessons and assessments.
Type above and press Enter to search. Press Esc to cancel.