Hyvor Developer
  Home   Download   Copy
Code
<?php
function myDetails(string $name, int $age, string $country) {
	echo "
		My name is $name <br>
		My age is $age <br>
		My country is $country <br><br>
	";
}
myDetails('Joe', 22, 'USA');
myDetails('Adam', 25, 'United Kingdom');
myDetails('David', 30, 'France');
# myDetails('John', 'N/A', 'Australia');  this will cause an error
Result