1.

How To Invoke A User Function?

Answer»

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");
?&GT;
This script will print:
Hello Bob!

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!



Discussion

No Comment Found