The fastest easiest way to get it right.

vgaGet

NAME

vgaGet

FUNCTION

The PHP function vgaGet is a wrapper for getting PHP global variables. You call vgaGet in order to receive global variables set without conflicting with the framework. You can also provide a default value to return in the case that the global variable isn't found or isn't set.

INPUTS

string $key - name of variable mixed $default - default variable for variable

RETURN VALUE mixed - value for variable

SOURCE

function vgaGet($key,$default='') {
   return isset($GLOBALS['appdata'][$key])
      ? $GLOBALS['appdata'][$key]
      : $default;
}

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2