Okay, well in my coding, I never use arrays, or not very often. When I do, I've never had to delete them.

For a recent wishlist project, I decided to save the trouble of having tons of MySQL rows, and just create one in the user table 'wishlist' and have the array (imploded, of course) put there, and exploded, and pulled out on the page.

The problem I've run across is removing things from your wishlist. I've never had to delete things from an array. So, pretty much I need help taking one value out of an array. For example, they may have itemids "1,2,3,4,5,6,7,8" in their wishlist, and I want to remove, say.. 4 from it.

How would I go about doing that?

Edit as far as Unset goes, I'm pretty sure to use it, you have to know where the value of the array is, to use it. I don't know where in the array (ie: $array[1]) the itemid is, so I don't think I can use it. Unless I could reorginize it, and then know its on $array[0] or something.