1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

unset() all variables?

Discussion in 'PHP' started by Kaizoku, Jan 2, 2009.

  1. #1
    Is there a way to use unset() on all variables that are used or in memory?
     
    Kaizoku, Jan 2, 2009 IP
  2. zerxer

    zerxer Peon

    Messages:
    368
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Umm.. well, you can get a listing of all the variables that are being used through the $_GLOBALS array but warning: it's a recursive array (includes itself) and also includes all the others like $_SERVER and $_GET and $_POST and such.
     
    zerxer, Jan 2, 2009 IP
    Kaizoku likes this.
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    Thanks, repped :)
     
    Kaizoku, Jan 4, 2009 IP