Re: [PHP-WIN] How to remove a value from a array

2001-07-10 Thread Ruslan Ohitin
Hi Steen, See array_splice() in manual SR> Hi SR> How can I remove a vale from a array() SR> eg; SR> $a = array("1","2","3"); SR> if I then unset($a[1]) the value is NULL, or the offset is empty, and you get a error if yoy try to access that element. SR> What I want/need is a function whic can

[PHP-WIN] How to remove a value from a array

2001-07-10 Thread Steen Rabøl
Hi How can I remove a vale from a array() eg; $a = array("1","2","3"); if I then unset($a[1]) the value is NULL, or the offset is empty, and you get a error if yoy try to access that element. What I want/need is a function whic can remove a valy/key from a array Does such a function exists