RE: printing multidimensional session variable

From: Date: Thu, 17 Aug 2000 01:21:31 +0000
Subject: RE: printing multidimensional session variable
Groups: php.general 
Request: Send a blank email to php-general+get-12136@lists.php.net to get a copy of this message
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at postmaster@normandy.com.au and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- John, You only need to register $foo, then anything you assign to $foo is a session var. I also think you need to do session_register("foo"); rather than session_register($foo); Otherwise you reigister a variable with a name the same as the value of $foo mn -----Original Message----- From: John Peebles [mailto:nemesisJ@softhome.net] Sent: Thursday, August 17, 2000 3:58 AM To: php-general@lists.php.net Subject: printing multidimensional session variable Hi, Pleas note that I am no longer on the mailing list so could you direct replies to my personal email adress? Thanks. I am trying to assign data into a multidimensional array and then register the array as a session variable. Here is what i do: $foo[$bar]['price'] = $price; session_register($foot[$bar]['price']); then i try to print it like this: <?echo "{$foo[$bar][price]}"; ?> this is the way the php manual says to do it in php4. is my problem the registering or the printing? Thanks so much in advance, JP ================================= The Official Faded Edge Website www.fadededge.com =================================

« previous php.general (#12136) next »