If its necessary pass to the PHP function a lot of variables - its possible compact them into associative array by next PHP function:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /** * (PHP 4, PHP 5) * Create array containing variables and their values * @link http://php.net/manual/en/function.compact.php * @param mixed $varname1 * <b>compact</b> takes a variable number of parameters. * Each parameter can be either a string containing the name of the * variable, or an array of variable names. The array can contain other * arrays of variable names inside it; <b>compact</b> * handles it recursively. * @param mixed $_ [optional] * @return array the output array with all the variables added to it. */ function compact ($varname1, $_ = null) {} |
