"git@forgeb1.univ-lehavre.fr:al223177/tp1-ri.git" n'existait pas sur "89b95040e02d5001195b794445ae5d387d2c8c16"
Newer
Older
function calculatePrice(
float $price,
float $tax,
float $discount
): float {
echo calculatePrice(100, 0.2, 10);
```
---
# Les Fonctions en PHP
## Paramètres Optionnels
```php
function calculatePrice(
float $price,
float $tax = 0.2,
float $discount = 0
): float {
function calculatePrice(
float $price,
float $tax = 0.2,
float $discount = 0
): float {