Karakas Online

28.4.2. Functions

Here is an example of a simple PHP function:

function get_lang($module) {
  global $currentlang, $language;
 
  HERE GOES THE FUNCTION CODE
}

It has the following structure, common to every PHP function:

Functions may be called from anywhere in the PHP code. See also PHP functions.

Last updated Sun Aug 7 21:14:12 CEST 2005 Permalink: http://www.karakas-online.de/EN-Book/php-functions.html All contents © 2004 Chris Karakas, Claudio Erba