Sunday 18 September 2011

php functions

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()
 {
 ----
-----
}
?>

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...