0
function  get_information($country = "Default argument", $name = "Default argument", $age = "Default argument", $address = "Default argument") {
    $line_one = "you country is $country your name is $name <br>";
    $line_two = "your age is $age your adress is $address";
    return $line_one . $line_two;
 }
echo get_information(address: "Rabat Capitale");

i wanna a solution for this syntax i have a problem on parameter passing by default value

Barmar
  • 741,623
  • 53
  • 500
  • 612

0 Answers0