Home
Credits
Affliates
Link Exchange

HTMLshaman
PHPshaman
LINUXshaman

Helpful Links
Web Design Images
Backgrounds
Icon Sets
GIF Images


Language Intro : Functions

A function is like a block of code that is called for when needed by the script. It will be clearer by listing the example below.
Example :
function sweetmash()
{
print "Mashmellows are sweet<br>";
}

function lovemash()
{
print "I love Mashmellows<br>";
}

sweetmash();
sweetmash();
sweetmash();
lovemash();

The above will display the phrase "MashMellows are sweet" three times before printing "I love Mashmellows", which means if we use functions and tehre are bits and pieces of code that we need to reuse again and again, it can save us a considerable amount of space, lower the file sizes and limit error from retyping.

There are numerous ways in which you can use and manupliate the functions commands and we will leave you to slowly explore its possibilities.






Basics
Introduction
Compilation for Apache

Language Intro
The Basics
Structuring
Script Flow
Functions
Arrays
Objects

Extras
Global values

Simple Scripts
MySQL Query
File Upload
List Contents






Disclaimer:
Contents on this site is provided for educational purposes and will not be distributing source codes from any major commercial reference.
Partial code may be used to provide better understanding of how the program works or functions to illustrate to the reader more clearly.
Other programs that are provided freely on the internet may be placed as a quick solution to the user's needs taking in consideration that it is not altered in any way.

Our Recommended Links
prepaid phone card
Online Casino
Smiley Central
Ventrilo Servers
Counter-Strike Servers
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
phone card

Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Hollywood Lyrics
Resident Evil
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet.