note 50071 deleted from ref.session by betz
| From: | betz@php.net | Date: | Fri, 08 Jul 2005 09:16:38 +0000 |
| Subject: | note 50071 deleted from ref.session by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91656@lists.php.net to get a copy of this message | ||
Note Submitter: beliexp at yahoo dot com
----
This is for tom(AT)darlingpet.com
I think that what you are explaining happens because what you have to put inside $_SESSION[] is the
name of a variable and there are rules for giving names. I don't remeber all of them but
I'm pretty sure one of them is that a variable name or identifier can't start with a
number. That's why your solution works because your variable names would be i1, i2, ...
You could always try $_SESSION[my_array[$i]], you may find it more handy.