By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,713 Members | 1,515 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,713 IT Pros & Developers. It's quick & easy.

session array

P: n/a
hi all,

Can I thread a session as an array and do:

for ($i=0; $i<$this->aantalStemmen; $i++)
$_SESSION['stem'][$i] = NULL;

regards
Stijn

Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Gecke Rün wrote:
hi all,

Can I thread a session as an array and do:

for ($i=0; $i<$this->aantalStemmen; $i++)
$_SESSION['stem'][$i] = NULL;

regards
Stijn

of course you can.

a session variable may also be an array!

like:
$_SESSION['var'] = array();
$_SESSION['var'][] = 'new value';

regards,
sh

--
"The goal of Computer Science is to build something that will last at
least until we've finished building it." -- unknown
Jul 17 '05 #2

P: n/a
In article <41***********************@news.skynet.be>, Gecke Rün wrote:
hi all,

Can I thread a session as an array and do:

for ($i=0; $i<$this->aantalStemmen; $i++)
$_SESSION['stem'][$i] = NULL;


don't know what you are trying to do,

meaby unset($_SESSION['stem'][$i]);
--
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.