"CPT John W. Holmes" wrote:

> Why not just
> 
> $_SESSION['userArray'] = $userArray;
> 
> ??
> 
> Then $_SESSION['userArray']['fname'] to access the values, for example.

Well, yes, that does work.  And it's an acceptable workaround (I've already
updated my code).  It's nice in that it let's me keep the keys that match my
database columns.

However, it's really just that: a workaround.  I'd still love to know why I
can't register certain variables and have them stick outside of that one
function.  I think I will never find out.

Thank you very much for a very direct alternative.
-- 
Jeff Stillwall


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to