In PHP, as in other programming languages, you can declare a function (in the case of this script greet()), which can be called on to run a predefined set of instructions. The function greet() in this page accepts a $name value then returns "Hello $name".