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!
2016-12-28, 388👍, 0💬
Popular Posts:
How To Sort an Array by Keys in PHP? Sorting an array by keys can be done by using the ksort() funct...
How To Join a List of Keys with a List of Values into an Array in PHP? If you have a list keys and a...
Where to find tutorials on how to create Your Own Functions in PHP? A collection of tutorials to ans...
Where to find tutorials on RSS specifications? I want to learn it to describe my API services. Here ...
How To Use an Array as a Stack in PHP? A stack is a simple data structure that manages data elements...