
hi sir, we give some egs those not produce the results those programs simply display the program on browser

Have a look at the following links:
http://www.roseindia.net/tutorial/php/phpfunctions/index.html
http://www.roseindia.net/tutorial/php/phpbeginners/php-functions.html