RE: [PHP] removing element from array

2001-03-19 Thread Jack Dempsey
alex if you're looking for a pop function, try array_pop.if you just want to remove an item and then compact the array, i believe you'll have to hack together something yourselfcheck the mailing list archives.. http://marc.theaimsgroup.com/?l=php-general&r=1&w=2 jack -Original M

Re: [PHP] removing element from array

2001-03-19 Thread Chris Lee
unset() $val) echo "$val"; unset($test[2]); foreach($test as $pos => $val) echo "$val"; ?> -- 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