//function with return a value function greetings() { return "Welcome to our PHP Tutorial"; } echo greetings().', John'; echo '
'; echo greetings().', Dan'; //function without return a value function greetings() { echo "Welcome to our PHP Tutorial."; return; } echo 'John, ', greetings(); echo '
'; echo 'Peter, ', greetings(); var_dump(greetings());
Hello World!