What is PHP Function ?
In PHP there are many pre-defined functions, but php gives a facility to create your own function. we can use function again and again repeat in a program. For use of execute a function, we must call the function. PHP Function is not execute while page load, it only execute when we call. There are mainly Four types of PHP Functions:-
1. function without argument
2. function with argument
3. function with default argument
4. function with return.
What is argument function in php ?
Argument is just like a variable in php, it is used to passed a information through functions. It is specified after the function name declaration. In argument function we can use many arguments using comma separater.
What is without argument function ?
In without argument we cannot passed a any information or any variable through functions. When we call the function then function itself execute the statement.
What is function with default argument ?
In PHP the default argument mean the argument value is decalred at the time of argument declaration.
What is returning Values in PHP Function ?
PHP Return is used using return variable. it is used for return any value message etc. If we use return statement and when we call the function then the function return the statement values.
For more clarify please watch this tutorial and learn about php function and there types..
thank you
On this page of the site you can watch the video online PHP Function - PHP Tutorial - 16 with a duration of hours minute second in good quality, which was uploaded by the user onballorg 05 September 2016, share the link with friends and acquaintances, this video has already been watched 79 times on youtube and it was liked by 1 viewers. Enjoy your viewing!