The final example of the section. Just a simple function with 2 parameters, $name and $age.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <html> <head> <title></title> </head> <body> <p> <?php function aboutMe($name, $age) { echo "Hello! My name is $name, and I am $age years old."; } aboutMe("Cristi", 30); ?> </p> </body> </html> |