Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2004
    Location
    Australia
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Trouble with unset and array

    I'm attempting to destory an entire array, not just an element of it. However when I add more elements to the array afterwards they are added to the end of the old supposedly destroyed array and I can see all the old elements still there.

    How do I effectively destroy an entire array?

    NB this is NOT a problem with unseting globals in a function.

  • #2
    New Coder
    Join Date
    Jan 2004
    Location
    Australia
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I hate that. Only minutes after I posted I found the solution. Unset unsets entire arrays just fine. I forgot to unset one of the other arrays.


  •  

    Posting Permissions

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