[pmwiki-users] php globals q.

noskule noskule at gmx.net
Thu Oct 2 07:50:23 CDT 2008

hi list
I would like to use variables in a function. Normaly I achive this by 
declaring varX as global.

function() {
    global $X $Y $Z

The problem is know that I use a set of variables in a couple of 
functions an I would like to avoid adding/changing these global 
variables in each function. So my question. Is it possible to declare a 
set of variables without writing every variable name, instead use an 
array or function to declare them, something like:

function() {
    global $myvarsetarray

function() {

thanks for any hints

More information about the pmwiki-users mailing list