Quiz · Functions · lesson 2 of 11
Quiz — named arguments
Question 1 of 2
What does the program print?
<?php
function price($amount, $discount = 0, $tax = 20)
{
return $amount - $discount + $tax;
}
echo price(100, tax: 0), ' ', price(100, 5), "\n";