|
|
|
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.
|
| Our Recommended Links |
|
|
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet. |