PHP Variable name length

Discussion in 'PHP' started by ferdousx, Jun 1, 2009.

  1. #1
    I was just wondering how long can a php variable name can be? I have search a little bit but didn't find anything. And also how long can be a session/cookie name?

    Thanks.
     
    ferdousx, Jun 1, 2009 IP
  2. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #2
    I don't see why anyone would name it as long a possible, I tend to keep it short and simple. But to answer your question, there is no limit in the length of the variable name.
     
    Kaizoku, Jun 1, 2009 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #3
    funny question
    as I know there is no practical limit
     
    crivion, Jun 2, 2009 IP
  4. ferdousx

    ferdousx Peon

    Messages:
    168
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    so, i guess then it can be of unlimited length ;) ....
     
    ferdousx, Jun 2, 2009 IP