creating your own functions

Tutorials Shared by the Internet Community

Advertisements


Synopsis

A guide to creating your own functions and how to use them.

Statistics

  • Total Hits - 27207

  • Total Votes - 100 votes

  • Vote Up - 43 votes

  • Vote Down - 57 votes

  • Domain - rawcliffe.wordpress.com

  • Category - PHP/Functions

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-19 05:39:33

Description

When you have a set of variables or want to make your code simpler, you will use a function. Creating a function is really easy all you have to do is write something like:

function myFunctionName() {
//Function data
} ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements