Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • loop
  • until

PHP - Loop until condition is true

Executes code until a given condition is valid.

0
467
  • Share on Facebook
  • Share on Google+
  • Share on Twitter
while !{{condition}} {
  {{body}}
}
php

Notes

last update: Dec. 4, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • For each loop
  • Counter loop
  • Do loop while a condition is true
  • Loop while condition is true
  • Break out of loop

Other language

  • Scala
  • Python
  • Ruby

Random task

  • Test whether checkbox element is checked
  • Undo published commit
  • Stop docker container
  • Show 32 or 64 bit operating system
  • Add user group
  • Blog
  • About
  • License