&1'; exec($cmd, $output, $exitCode); $raw = trim(implode("\n", $output)); $decoded = json_decode($raw, true); if (is_array($decoded) && ($decoded['ok'] ?? false) && is_array($decoded['phases'] ?? null)) { foreach ($decoded['phases'] as $phase) { // local_date format: "DD.MM.YYYY" $parts = explode('.', (string) ($phase['local_date'] ?? '')); if (count($parts) === 3) { $day = (int) $parts[0]; $month = (int) $parts[1]; if ($month === $m && $day >= 1 && $day <= 31) { $allPhaseEvents[] = [ 'month' => $month, 'day' => $day, 'label' => (string) ($phase['label'] ?? ''), 'time' => (string) ($phase['local_time'] ?? ''), ]; } } } } } ?>

Mondphasen

Aktuelles Jahr
Mondphasen <?= htmlspecialchars((string) $selectedYear, ENT_QUOTES, 'UTF-8') ?>

Zeichne Mondphasen-Jahresübersicht…

Neumond  ·  Erstes Viertel  ·  Vollmond  ·  Letztes Viertel — Zeitzone: