
PHP Functions Functions in PHP – PHP Tutorial 59
Notes for You:: PHP Functions.
– A function is a block of code with name, meant to perform a specific task.
– Whenever we want to perform a specific task, we create a function.
– A function is a block of code with name, meant to perform a specific task.
– Whenever we want to perform a specific task, we create a function.
Creating a function:
– A function is created or defined with the help of function keyword.
Syntax: /* function definition */
function functionName( [param1,param2, …. paramN] )
{
statement(s) to be executed;
[return returningValue;]
}
Example:
– A function without parameters, without returning value.
function wishHi()
{
echo /”Hi/
Take the opportunity to connect and share this video with your friends and family if you find it useful.
No Comments