means set of instructions
the basic syntax
function <function name>($arguments1, $arguments2, ......) {
statements1;
statements2;
}
It has four parts
-Special word function
-names that u want to give your function name
- function parameters list precided by dollar sign
- function body brace enclosed set of statements
Example
<?php
function xyz()
{
----
-----
}
?>
the basic syntax
function <function name>($arguments1, $arguments2, ......) {
statements1;
statements2;
}
It has four parts
-Special word function
-names that u want to give your function name
- function parameters list precided by dollar sign
- function body brace enclosed set of statements
Example
<?php
function xyz()
{
----
-----
}
?>
No comments:
Post a Comment