utilities.inc.php
/**
 * Take an associative array and create global variables out of the elements of the array
 * The keys of the array are used for the variable names. If the given name does not exist
 * in the array, a variable will still be created, but its value will be null. This ensures
 * that every variable name in $names is defined.
 * @param unknown_type $input
 * @param unknown_type $names
 */
Take an associative array and create global variables out of the elements of the array
The keys of the array are used for the variable names. If the given name does not exist
in the array, a variable will still be created, but its value will be null. This ensures
that every variable name in $names is defined.
Take an associative array and create global variables out of the elements of the array The keys of the array are used for the variable names . If the given name does not exist in the array a variable will still be created but its value will be null . This ensures that every variable name in $names is defined .
function make_global( &$input, $names)
{
	foreach ($names as $name) {
		if (isset( $input[$name]))
		{
			$GLOBALS[$name] =  $input[$name];
		} else {
		    $GLOBALS[$name] = null; 
		}
	}
}
function make_global ( & $ input , $ names ) { foreach ( $ names as $ name ) { if ( isset ( $ input [ $ name ] ) ) { $ GLOBALS [ $ name ] = $ input [ $ name ] ; } else { $ GLOBALS [ $ name ] = null ; } } }
Take an associative array and create global variables out of the elements of the array
 The keys of the array are used for the variable names.
Take an associative array and create global variables out of the elements of the array The keys of the array are used for the variable names .
// so that it is not undefined