Re: Register session in function without global?
| From: | CC Zona | Date: | Thu, 22 Mar 2001 20:40:41 +0000 |
| Subject: | Re: Register session in function without global? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-45179@lists.php.net to get a copy of this message | ||
In article <99dn35$duo$1@toye.p.sourceforge.net>,
tobias@talltorp.com ("Tobias Talltorp") wrote:
> I am trying to register a session variable in a function without using the
> global in the beginning.
You can pass the variable(s) to the function as an argument. Perhaps it
will be easier to deal with a variable number variables <g> by packing all
of them into a single array, then passing the array.
--
CC