PHP- accessing session var

From: Date: Wed, 13 Aug 2003 21:59:58 +0000
Subject: PHP- accessing session var
Groups: php.general 
Request: Send a blank email to php-general+get-159496@lists.php.net to get a copy of this message
Hi This will be real simple for you guys. When I print_r my session vars part of what get is: [_SESSION] => Array ( [cart] => shoppingcart Object ( [contents] => Array ( [37] => Array ( [qty] => 1 ) ) [total] => 70 [weight] => 0 [cartID] => [content_type] => physical ) SO I'm trying to capture the total(70). I'm trying $_SESSION['cart']['total'] But I'm not getting it. This is a multidimensional array isnt it ? -- Thx Mignon

« previous php.general (#159496) next »