PHP Functions
PHP Recursive Function
PHP also supports recursive function call like C/C++. In such case, we call current function within function. It is also known as recursion. It is…
PHP Variable Arguments
PHP supports variable length argument function. It means you can pass 0, 1 or n number of arguments in function. To do so, you need…
PHP Default Argument
PHP allows you to define C++ style default argument values. In such case, if you don’t pass any value to the function, it will use…
PHP Call By Reference
In case of PHP call by reference, actual value is modified if it is modified inside the function. In such case, you need to use…
PHP Call By Value
PHP allows you to call function by value and reference both. In case of PHP call by value, actual value is not modified if it…
PHP Functions
PHP function is a piece of code that can be reused many times. It can take input as argument list and return value. There are…