Proper way to remove an element from an array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know in some languages there's a right way to remove an element from an array and other ways that will give you problems.

In PHP can I just set $arrayname[key] = null? Or will I then end up with key => null as a value. I looked on php.net under array functions for a bit and I didn't find any sort of remove element function. I've just never needed to do this before.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux