Книга: Fedora™ Unleashed, 2008 edition

until

until
until
is the exact opposite of the while statement. It performs a block of statements as long as a particular condition is false — or, rather, until it becomes true:

until (ValidPassword($user, $password)) {
 print "You've entered an invalid password. Please try again.n";
 $password = GetPassword;
}

Оглавление статьи/книги

Генерация: 0.464. Запросов К БД/Cache: 2 / 0
поделиться
Вверх Вниз