Functions

  1. Defining and calling functions.
<?php
function greet($name) {
    echo "Hello, $name!";
}
greet("Alice");
?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *