title: How to retrieve a array value in magento
body: <p>For example I need to retrieve a value from this session. How should I do ? Exactly i need to get the "<strong>customer_log_id</strong>". </p>
  
  <pre><code>&gt; Array (
  &gt;     [core] =&gt; Array
  &gt;         (
  &gt;             [_session_validator_data] =&gt; Array
  &gt;                 (
  &gt;                     [remote_addr] =&gt; 127.0.0.1
  &gt;                     [http_via] =&gt; 
  &gt;                     [http_x_forwarded_for] =&gt; 
  &gt;                     [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
  &gt;                 )
  &gt; 
  &gt;             [session_hosts] =&gt; Array
  &gt;                 (
  &gt;                     [127.0.0.1] =&gt; 1
  &gt;                 )
  &gt; 
  &gt;             [messages] =&gt; Mage_Core_Model_Message_Collection
  &gt; Object
  &gt;                 (
  &gt;                     [_messages:protected] =&gt; Array
  &gt;                         (
  &gt;                         )
  &gt; 
  &gt;                     [_lastAddedMessage:protected] =&gt; 
  &gt;                 )
  &gt; 
  &gt;             [visitor_data] =&gt; Array
  &gt;                 (
  &gt;                     [] =&gt; 
  &gt;                     [server_addr] =&gt; 2130706433
  &gt;                     [remote_addr] =&gt; 2130706433
  &gt;                     [http_secure] =&gt; 
  &gt;                     [http_host] =&gt; 127.0.0.1
  &gt;                     [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
  &gt;                     [http_accept_language] =&gt;
  &gt; en-us,en;q=0.5
  &gt;                     [http_accept_charset] =&gt;
  &gt; ISO-8859-1,utf-8;q=0.7,*;q=0.7
  &gt;                     [request_uri] =&gt; /currentproject/magento/index.php/customer/account/
  &gt;                     [session_id] =&gt; 34989ee1673caefec0d887dd41198587
  &gt;                     [http_referer] =&gt; http://127.0.0.1/currentproject/magento/index.php/customer/account/login/
  &gt;                     [first_visit_at] =&gt; 2009-12-04 11:20:24
  &gt;                     [is_new_visitor] =&gt; 
  &gt;                     [last_visit_at] =&gt; 2009-12-04 11:32:26
  &gt;                     [visitor_id] =&gt; 208
  &gt;                     [last_url_id] =&gt; 1399
  &gt;                     [catalog_compare_items_count] =&gt; 0
  &gt;                     [do_customer_login] =&gt; 
  &gt;                     [customer_id] =&gt; 1
  &gt;                     [customer_log_id] =&gt; 8
  &gt;                 )
  &gt; 
  &gt;             [last_url] =&gt; http://127.0.0.1/currentproject/magento/index.php/customer/account/index/
  &gt;             [just_voted_poll] =&gt; 
  &gt;         )
  &gt; 
  &gt;     [_cookie_revalidate] =&gt; 1259926524
  &gt;     [customer_base] =&gt; Array
  &gt;         (
  &gt;             [_session_validator_data] =&gt; Array
  &gt;                 (
  &gt;                     [remote_addr] =&gt; 127.0.0.1
  &gt;                     [http_via] =&gt; 
  &gt;                     [http_x_forwarded_for] =&gt; 
  &gt;                     [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
  &gt;                 )
  &gt; 
  &gt;             [session_hosts] =&gt; Array
  &gt;                 (
  &gt;                     [127.0.0.1] =&gt; 1
  &gt;                 )
  &gt; 
  &gt;             [messages] =&gt; Mage_Core_Model_Message_Collection
  &gt; Object
  &gt;                 (
  &gt;                     [_messages:protected] =&gt; Array
  &gt;                         (
  &gt;                         )
  &gt; 
  &gt;                     [_lastAddedMessage:protected] =&gt; 
  &gt;                 )
  &gt; 
  &gt;             [id] =&gt; 1
  &gt;         )
  &gt; 
  &gt;     [checkout] =&gt; Array
  &gt;         (
  &gt;             [_session_validator_data] =&gt; Array
  &gt;                 (
  &gt;                     [remote_addr] =&gt; 127.0.0.1
  &gt;                     [http_via] =&gt; 
  &gt;                     [http_x_forwarded_for] =&gt; 
  &gt;                     [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
  &gt;                 )
  &gt; 
  &gt;             [session_hosts] =&gt; Array
  &gt;                 (
  &gt;                     [127.0.0.1] =&gt; 1
  &gt;                 )
  &gt; 
  &gt;             [quote_id_1] =&gt; 
  &gt;         )
  &gt; 
  &gt;     [catalog] =&gt; Array
  &gt;         (
  &gt;             [_session_validator_data] =&gt; Array
  &gt;                 (
  &gt;                     [remote_addr] =&gt; 127.0.0.1
  &gt;                     [http_via] =&gt; 
  &gt;                     [http_x_forwarded_for] =&gt; 
  &gt;                     [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
  &gt;                 )
  &gt; 
  &gt;             [session_hosts] =&gt; Array
  &gt;                 (
  &gt;                     [127.0.0.1] =&gt; 1
  &gt;                 )
  &gt; 
  &gt;             [messages] =&gt; Mage_Core_Model_Message_Collection
  &gt; Object
  &gt;                 (
  &gt;                     [_messages:protected] =&gt; Array
  &gt;                         (
  &gt;                         )
  &gt; 
  &gt;                     [_lastAddedMessage:protected] =&gt; 
  &gt;                 )
  &gt; 
  &gt;         )
  &gt; 
  &gt;     [newsletter] =&gt; Array
  &gt;         (
  &gt;             [_session_validator_data] =&gt; Array
  &gt;                 (
  &gt;                     [remote_addr] =&gt; 127.0.0.1
  &gt;                     [http_via] =&gt; 
  &gt;                     [http_x_forwarded_for] =&gt; 
  &gt;                     [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
  &gt;                 )
  &gt; 
  &gt;             [session_hosts] =&gt; Array
  &gt;                 (
  &gt;                     [127.0.0.1] =&gt; 1
  &gt;                 )
  &gt; 
  &gt;         )
  &gt; 
  &gt; )
  </code></pre>