Re: accessing values from an array
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: accessing values from an array

From: Jerry Stuckle <jstucklex@attglobal.net>
Date: Fri Nov 18 2005 - 04:46:34 CET

mtjarrett wrote:
> thanks, but i've tried that:
>
>>>echo $_SESSION['info'][0] . "<br/>";
>>>echo $_SESSION['info'][1] . "<br/>";
>
>
> it seems that though $_SESSION['info'] is a set it only contains the
> word "Array". any ideas on that?
>
> thanks again.
>

That's what you get if you just echo $_SESSION because it is an array.

Try

   print_r($_SESSION);

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Received on Mon Nov 21 03:04:51 2005