unset()

<?php
    $test[0] = 0;
    $test[1] = 1;
    $test[2] = 2;
    $test[3] = 3;

    foreach($test as $pos => $val)
        echo "$val<br>";

    unset($test[2]);

    foreach($test as $pos => $val)
        echo "$val<br>";
?>


-- 

 Chris Lee
 [EMAIL PROTECTED]


""Alexander Gräf"" <[EMAIL PROTECTED]> wrote in message 
995d13$cfl$[EMAIL PROTECTED]">news:995d13$cfl$[EMAIL PROTECTED]...

shame of me for asking that a stupid question, but i don't know how to
remove an element off an associative array. can anybody please tell me, i
didn't find anything about that in faqs or manuals.

thank you

--
[EMAIL PROTECTED]
+49 9721 188848
+49 171 370 97 15



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to