Mal etwas mehr als als Wikipedia. Speziell für die IT-Branche und noch gut erklärt.
foreach
$theFiles = [‚cs‘,’js‘,’php‘]; foreach ($theFiles as $ext) $theFile = __DIR__ . ‚/domains/‘ .CLIENT_DOMAIN .‘.‘ .$ext; if (file_exists($theFile)) require_once $theFile;