0) { $exchangeRate = getExchangeRate($fromCurrency, $toCurrency); if ($exchangeRate !== null) { $result = $amount * $exchangeRate; } else { $result = "Impossible de récupérer le taux de conversion."; } } else { $result = "Veuillez remplir tous les champs correctement."; } } ?>
= is_numeric($result) ? "Le montant converti est de : " . number_format($result, 2) : htmlspecialchars($result) ?>