Home / PHP Tips Generated By ChatGPT / Defining and Calling Functions in PHP Create reusable code blocks with functions to perform specific tasks. Source Code function greet($name) { return "Hello, " . $name . "!"; } echo greet("John");