The fastest easiest way to get it right.

gpSetFromArray

NAME

gpSetFromArray

FUNCTION

The PHP function gpSetFromArray adds all variables in the provided array into the Get/Post variables. In the array, the keys are the names of the variables, while the values are the values for the variables. If a prefix is provided, the prefix will be appended to the beginning of every variable name that is added.

INPUTS

string $prefix - Prefix to add at the beginning of each variable name array $array - Variables and their values to add into the Get/Post

              parameters.

SOURCE

function gpSetFromArray($prefix,$array) {
   foreach($array as $key=>$value) {
      gpSet($prefix.$key,$value);
   }
}

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