Signatur
do { … } while (bool $condition);
Beschreibung
Nützlich bei Retry-Logik oder Menüs, die mindestens einmal angezeigt werden sollen.
Rückgabewert
Typ
void
Beispiele
Retry
<?php
$attempts = 0;
do {
$ok = tryConnect();
$attempts++;
} while (!$ok && $attempts < 3);