11-functions/index.php File Reference

This program is written to demonstrate use of functions in PHP. More...

Go to the source code of this file.

Functions

 add ($num1, $num2)
 This function adds two numbers which are given to it as arguments.
 main ()
 This function calls function add to add two numbers to demonstrate how functions can be called.


Detailed Description

This program is written to demonstrate use of functions in PHP.

Author:
Saurabh Barjatiya
Version:
1.0

Definition in file index.php.


Function Documentation

add ( num1,
num2 
)

This function adds two numbers which are given to it as arguments.

Parameters:
num1 First number to be added
num2 Second number to be added
Returns:
Sum of two numbers given as argument

Definition at line 18 of file index.php.

Referenced by address_book_page(), display_documentation_page(), and main().

main (  ) 

This function calls function add to add two numbers to demonstrate how functions can be called.

Returns:
Nothing

Definition at line 29 of file index.php.

References add().


Generated on Fri Nov 4 14:16:55 2011 for PHP example documentation by  doxygen 1.4.7