Methods

Using methods

The next example shows you, how to create methods in your script.

function foobar {
      /* do something here */
}

foobar();


Method parameters

The next example shows, how to derive parameters to your method.

function foobar {
     echo ($1);
}

foobar("Hello, World!");

Last edited Mar 31, 2009 at 8:56 PM by brianmayclone, version 2

Comments

No comments yet.