Tools, FAQ, Tutorials:
Defining a User Function in PHP
How To Define a User Function? in PHP?
✍: FYIcenter.com
You can define a user function anywhere in a PHP script using the function statement like this: "function name() {...}". Here is a PHP script example on how to define a user function:
<?php
function msg() {
print("Hello world!\n");
}
msg();
?>
This script will print:
Hello world!
⇒ Invoking a User Function in PHP
⇐ Creating Your Own Functions in PHP
2016-12-28, ∼2270🔥, 0💬
Popular Posts:
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...
What's Wrong with "while ($c=fgetc($f)) {}" in PHP? If you are using "while ($c=fgetc($f)) {}" to lo...
How to use "json-to-xml" Azure API Policy Statement? The "json-to-xml" Policy Statement allows you t...
What is EPUB 3.0 Metadata "dcterms:modified" property? EPUB 3.0 Metadata "dcterms:modified" is a req...
How to run CMD Commands in Dockerfile to change Windows Docker images? When building a new Windows i...