Code/PHP
Functions and PHP Call the Functions
fromscratch
2022. 3. 14. 11:09
<!DOCTYPE html>
<html>
<body>
<?php
function sayHi($name, $age){
echo "Hello, $name, you are $age years old.<br>";
}
sayHi("Amy", 4);
sayHi("Tom", 30);
sayHi("Eithen", 40);
?>
</body>
</html>
Hello, Amy, you are 4 years old.
Hello, Tom, you are 30 years old.
Hello, Eithen, you are 40 years old.