Function arguments are variables of some supported data type that are processed within the body of the function. It can take input as an argument and return value.
PHP has more than 1000 built-in functions, and in addition, you can also create your own functions.
Built-in Functions: PHP has thousands of built-in functions. For a complete reference and examples, you can go to this link https://www.php.net/manual/en/funcref.php.
User Defined Functions: Apart from built-in functions, we can also create our own functions and call them easily.
A user-defined function looks something like this:
<?php
function functionname() {
// Code
}
functionname(); // Calling Function
?>
Example:
<?php
function helloMsg() {
echo "Hello world!";
}
helloMsg(); // call the function
?>