XAMPP is a very easy to install Apache Distribution for Linux, Solaris, Windows and Mac OS X. The package includes the Apache web server, MySQL, PHP, Perl, a FTP server and phpMyAdmin.
In this section we are going to understand with php functions. You must installed a XAMPP server on your PC.
Syntax of a PHP function
function funName()
{
desired code;
}
We can create functions by various ways in our php scripting some of them are as under :
- Creation of function in PHP
- Creation of function in PHP : Adding arguments/parameters
- Creation of function in PHP : Two parameters
- Creation of PHP function that returns the value
A function will be executed by a call to the function. Functions takes the responsibility to perform a work so its very important part any technology we use.This is the php scripting for creation a function named display(). In this function only a name "Deepak dwij " will print .When we call a function display() it will print a name Deepak dwij.
Download Free