Invoking a User Function in PHP


How To Invoke a User Function? in PHP?



You can invoke a function by entering the function name followed by a pair of parentheses. If needed, function arguments can be specified as a list of expressions enclosed in parentheses. Here is a PHP script example on how to invoke a user function:

function hello($f) {
  print("Hello $f!\n");

This script will print:

Hello Bob!


Creating Your Own Functions in PHP

⇒⇒PHP Tutorials

2016-12-28, 283👍, 0💬