Hello,

I am currently testing out some things with removing elements from arrays,
and I find it strange that the following statement does not work for me:

unset($array['element'])

I wrote a little test script, you can see the source at
http://www.antrophia.com/test.txt and the executable at
http://www.antrophia.com/test.php ... Now, if you look at the last part:

unset ($unserialized['foo']);
if (key_exists("foo", $unserialized)) { echo "foo exists!\n"; }
if (key_exists("wom", $unserialized)) { echo "wom exists!\n\n"; }

You will see that $unserialized['foo'] still exists! Can anyone explain me
what I'm doing wrong?

Thanks in advance,

Leon Mergen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to