Книги автора: Fedora™ Unleashed, 2008 edition
/ Книги автора: Fedora™ Unleashed, 2008 edition
/ honorato bonafe
Книга: Fedora™ Unleashed, 2008 edition
while
while
performs a block of statements as long as a particular condition is true:
while
while ($x<10) {
print "$xn";
$x++;
}
Remember that the condition can be anything that returns a true or false value. For example, it could be a function call:
while ( InvalidPassword($user, $password) ) {
print "You've entered an invalid password. Please try again.n";
$password = GetPassword;
}
Оглавление статьи/книги