Clearing array?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sonnich

    Clearing array?

    Hi!

    How do I clear an array, I mean how do I free up all items in array, so
    it becomes empty?

    I have an array which I reuse in a loop, and need to have it emptied
    when starting.

    I fill it like this $blah[ _some_var_from_ some_db ]="whatever";

    BR
    Sonnich

  • spam@humanoriented.com

    #2
    Re: Clearing array?


    Hi Sonnich, just

    $blah = array();



    Sonnich wrote:
    Hi!
    >
    How do I clear an array, I mean how do I free up all items in array, so
    it becomes empty?
    >
    I have an array which I reuse in a loop, and need to have it emptied
    when starting.
    >
    I fill it like this $blah[ _some_var_from_ some_db ]="whatever";
    >
    BR
    Sonnich

    Comment

    Working...