Tools, FAQ, Tutorials:
Invoking a User Function in PHP
How To Invoke a User Function? in PHP?
✍: FYIcenter.com
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:
<?php function hello($f) { print("Hello $f!\n"); } hello("Bob"); ?>
This script will print:
Hello Bob!
⇒ Returning a Value from a Function in PHP
⇐ Defining a User Function in PHP
2016-12-28, 1585🔥, 0💬
Popular Posts:
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...
How To Convert a Character to an ASCII Value? If you want to convert characters to ASCII values, you...
What properties and functions are supported on requests.models.Response objects? "requests" module s...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
How To Access a Global Variable inside a Function? in PHP? By default, global variables are not acce...