Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default why add 2 $ in var


  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: why add 2 $ in var

    Because it's referring to an object created from a class by the name of the $_SESSION variable.
    The code is correct.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: why add 2 $ in var

    Here's a link to the $$ variables at php.net: http://us3.php.net/manual/en/languag...s.variable.php

 

 

Similar Threads

  1. v139h I want to add 2 var in $_SESSION
    By linjuming in forum General Questions
    Replies: 3
    Last Post: 26 May 2012, 10:59 AM
  2. Why?! Why?! Why?! (IE6 causing links to disappear instead of setting color)
    By pholli4 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 May 2008, 07:57 AM
  3. [Done v1.3.8] var declaration in sessions.php
    By nesredep in forum Bug Reports
    Replies: 1
    Last Post: 25 Aug 2007, 05:16 PM
  4. What is the _GET[sort] var?
    By mgraphic in forum General Questions
    Replies: 2
    Last Post: 31 Aug 2006, 09:03 PM
  5. Session Var's outside store
    By w_lamoreaux in forum General Questions
    Replies: 6
    Last Post: 30 Aug 2006, 06:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg